Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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";
	}
  
}
 
PREVIOUS NEXT
Tagged: #whats #meaninig #void #functions #php
ADD COMMENT
Topic
Name
5+1 =