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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -