Search
 
SCRIPT & CODE EXAMPLE
 

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";
	}
  
}
Comment

PREVIOUS NEXT
Code Example
Php :: php reporting wrong time 
Php :: ipn listener paypel php 
Php :: if is checkout page woocommerce 
Php :: used resoure route how to add another route 
Php :: laravel Post model for flat file CMS 
Php :: randomize question in laravel 
Php :: php in array key 
Php :: header cross origin using php only for our domains and subdomain 
Php :: integer division in php 
Php :: stack once laravel 
Php :: age php datetime 
Php :: vc_map type number 
Php :: php get end date of month 
Php :: function that checks number only in php 
Php :: php get ip by domain 
Php :: php json hjeader 
Php :: wordpress display post comment number 
Php :: append new line php 
Php :: Detecting russian characters on a form in PHP 
Php :: memory limit wordpress 
Php :: php first 20 words 
Php :: laravel simplexmlelement xml add attribute 
Php :: codeigniter set timezone 
Php :: install php-fpm centos 7 
Php :: join 2 tables laravel 
Php :: php Call to undefined function mb_convert_case() 
Php :: php is daylight savings 
Php :: validate time in laravel 
Php :: php remove all parameter from url 
Php :: laravel collection each 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =