Answers for "whats the meaninig of void functions in php"

PHP
1

whats the meaninig of void functions in php

PHP
//in php the function must not return any things and
//just must do somethings in function
//so we declare function is this way :)
class A{
  public function __construct () {}
  
  public function test () :void {
  	$this->name = "mohamad";
	}
  
}
Posted by: Guest on March-28-2022

Code answers related to "whats the meaninig of void functions in php"

Browse Popular Code Answers by Language