in static method how to call normal method php code example
Example 1: how to use the foreach method in javascript
groceries.forEach(groceryItem => console.log(groceryItem));
Example 2: how to call a static method in java
class scratch{
public static hey(){
System.out.println("Hey");
}
public static void main(String[] args){
hey();
//print Hey to the console
}
Example 3: php call protected function from child class
class adminpanel extend myadmin {
public function index() {
$this->_layouts();
// or
parent::_layouts();
}
}