note 41368 added to function.implode

From: Date: Wed, 07 Apr 2004 19:56:10 +0000
Subject: note 41368 added to function.implode
Groups: php.notes 
Request: Send a blank email to php-notes+get-67777@lists.php.net to get a copy of this message
<?php //Hello every body... This is a litle function //(the siplest way) to do the query_string from an array. function Create_Query($Array){ #Tvorenie QUERY_STRINGu foreach ($Array as $index => $value){ $Output[]=$index.'='.$value; } $Output = implode("&", $Output); return $Output; } //EXAMPLE:: $LS['ln']='SK'; $LS['page']='index'; $LS['action']='login'; Create_Query($LS); //The output would be:: //ln=SK&page=index&action=login ?> ---- Manual Page -- http://www.php.net/manual/en/function.implode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41368 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41368&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41368&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67777) next »