is there an official equivalent to the C# isNullOrEmpty method in PHP? I know there is empty and such, but is this the same?
Thanks :)
I'm using strlen
for checking if string is null or empty.
if (strlen($str) == 0){
//your code here
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With