note 112798 deleted from function.is-string by peehaa

From: Date: Sun, 28 Apr 2019 10:13:02 +0000
Subject: note 112798 deleted from function.is-string by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210745@lists.php.net to get a copy of this message
Note Submitter: Sammy Moshe ---- The cool thing about this function is that it lets you be a lot more specific with your logic than you could have been before. And since I'm all about explicit control, when it comes to code, this one gets me all hot and bothered. <?php //Like this. You could also do the reverse of it. if(is_string($variable) ) && !is_array($variable) ){ //Do something that appeals to your controlling nature. } ?> God bless those php dev guys for thinking of everything.

« previous php.notes (#210745) next »