null strings..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dwfait
Forum Contributor
Posts: 113
Joined: Sun Aug 01, 2004 10:36 pm

null strings..

Post by dwfait »

Hi. I know this is the most newbiest question in the world, but its late(early, been up all night), but how do you make a string null?

just $string=0? i tried that and got an unexpected T_VARIABLE error :-\
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Empty string -> $string = '';
Null string -> $string = NULL;
Post Reply