PHP empty array value declaration -


can in way declare array value string, int etc. without adding value it?

for example:

public $arr = array(string); 

short answer, no. php weakly typed language , doesn't impose types. closest thing type hints, won't in case.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -