note 73928 added to ref.array

From: Date: Thu, 15 Mar 2007 23:51:15 +0000
Subject: note 73928 added to ref.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-124495@lists.php.net to get a copy of this message
Just realized I could have done all of that with only a few lines: <?php $s = "1,2,3,4,5"; $a = explode(",",$s); $s = "'" . implode("','", $a) ."'"; print $s; //outputs '1','2','3','4','5' ?> Hopefully I've saved some face... :S heh heh ---- Server IP: 66.207.199.35 Probable Submitter: 204.244.149.125 ---- Manual Page -- http://www.php.net/manual/en/ref.array.php Edit -- https://master.php.net/note/edit/73928 Del: integrated -- https://master.php.net/note/delete/73928/integrated Del: useless -- https://master.php.net/note/delete/73928/useless Del: bad code -- https://master.php.net/note/delete/73928/bad+code Del: spam -- https://master.php.net/note/delete/73928/spam Del: non-english -- https://master.php.net/note/delete/73928/non-english Del: in docs -- https://master.php.net/note/delete/73928/in+docs Del: other reasons-- https://master.php.net/note/delete/73928 Reject -- https://master.php.net/note/reject/73928 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124495) next »