I'm totally new to php(migrating from java). There are two classes
First.php
class First {
public function method(){
#how to call second object like java
#$obj=new Second();
}
}
Second.php
class Second{
public function method_second(){
echo 'second method';
}
}
Can't we create object of Second.php in First.php