laravel

 class A {

hasonethorugh

we can extend classes but why we are using trait

multiple try cathc method

multiple inheritance

multiple try catch

multiple catch

hsone through

public function m() {
return 'x';
}
}
class B extends A {
public function m() {
return 'y';
}
}



$instB = new B();
echo $instB->m();

$instA = new A();
echo $instA->m();

<?php
error_reporting(E_ALL);
class A {
public static function m() {
echo 'M';
}
public function n() {
// Write code to access m()
}
}

$instA = new A();
$instA->n();

class A {
public function m() {
return;
}
}
class B extends A {
public function n() {
return;
}
}
class C extends B {
public function o() {
return;
}
}
You11:45 AM
echo ::m();

XSS
function doSomething($a, ...$x) {
// some operation
}

=======

$a = 5;
$b = 'a';
$c = 'b';

echo $$c;
======

$b = 5;
var_dump($b++ == ++$b);
echo $b;

$a = [
'name' => 'A',
'age' => 13
]
[
'A',
13
]

hasOneThrough
Posts
-----
id
title
desc

Comments
--------
id
post_id
text
author

$post = Post::find(1);

Get the authors for the comment only
hasmany('comment:classs,"select('name"));
PRI- Vamsi (Sean Atkinson)

No comments:

Post a Comment

Event listening in react

 How we can listen to som eevents some envents fire like click or automatically user enters into input button , that is event on word type i...