[PHP] Under which distribution(s) is PHP developed, compiled, and tested?

2010-12-15 Thread Dan Schaefer
, 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 List (http

Re: [PHP] Custom function

2011-02-16 Thread Dan Schaefer
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 Developer/Systems Analyst

Re: [PHP] json_encode confusion

2011-11-10 Thread Dan Schaefer
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