On 11/10/2011 09:45 AM, Bastien Koert wrote:
Morning all,
I've been having some fun with converting a text data file import into
a json object for storage.
I have a text file that is pipe delimited coming in via an upload. The
first row is the headers and the second row is the data.
Using this
In my code, I set the optional parameter to NULL and check for triple equals "===" or "!==" to see
if the variable has been passed with a value. IMO, this is the safest way.
function MyFunction($x, $y, $z=NULL) {
if ($z !== NULL) {
// Do Something
}
}
Dan Schaefer
Web Devel
that show
the major and/or minor Linux distributions that support which version of PHP?
FTR, I couldn't find an answer to these questions by Googling or in the
php-general archives.
--
Dan Schaefer
Web Developer/Systems Analyst
Performance Administration Corp.
--
PHP General Mailing
3 matches
Mail list logo