Re: [PHP] RE: Reliable PHP web hosts

2001-08-13 Thread Jan Wilson
t on some questions I had about PHP support. It could be that they don't really know ;-) -- Jan Wilson, SysAdmin _/*]; [EMAIL PROTECTED] Corozal Junior College | |:' corozal.com corozal.bz Corozal Town, Belize | /' chetumal.com & linux.bz Reg. Linux user

Re: [PHP] age

2001-08-05 Thread Jan Wilson
27;],$next['mday'],$next['year']); $daysThisYear = ($nextUnix-$lastUnix)/(24*60*60); $daysSinceLast = ($todayUnix-$lastUnix)/(24*60*60); if ($yearDecimals > 0) { // give decimal fraction $age += $daysSinceLast/$daysThisYear;

Re: [PHP] foreach and multiple arrays

2001-07-29 Thread Jan Wilson
quot;Banana","Yellow","10","20") ); foreach($array2d as $rowNum => $rowVal) { print "Row $rowNum:\n"; print "Title is $rowVal[0]\n"; print "Value is $rowVal[1]\n"; print "Size1 is $rowVal[2]\n"; print &

Re: [PHP] Re: limiting lines

2001-07-29 Thread Jan Wilson
e end of each line. > > Anyone know how to convert that to a "\n" ? I don't understand what you're saying about the new lines and end of paragraphs. But if you want to convert CRLF to LF, try: str_replace("\r\n","\n",$string); -- J