substr passing null...

From: Date: Mon, 26 Jan 2009 20:41:31 +0000
Subject: substr passing null...
Groups: php.internals 
Request: Send a blank email to internals+get-42852@lists.php.net to get a copy of this message
Hello, I just have a question, often there are 'optional' parameters to functions, I've always thought that most of the time I could pass null to these if I wanted to leave one empty. This has as far as I can tell always worked except recently I was using substr(). If I pass null to the third param, I get nothing back. Isn't passing null the same as not passing anything? Is this a bug? Or is my logic flawed? -- Nathanael d. Noblet Gnat Solutions, Inc T: 403.875.4613

« previous php.internals (#42852) next »