0
What is means of speak()
I was get stuck in this silly method called as speak() <?php class Person { public $age; function speak() { echo "Hi!"; } } $p1 = new Person(); $p1->age = 23; echo $p1->age; $p1->speak(); ?>
3 odpowiedzi
+ 1
No body know that. We need to see the code. Not only the Name of a method. It could be or do everything.
+ 1
Show the code
+ 1
Riyaz Khan , this is class method!
when you call speak() method, it prints (echoes) "Hi!"
as coded(described) the class Person