A simple function that takes an array such as HTTP_GET_VARS and creates an url variable string from the elements. This string can then be used in a link to another page. Especially useful for Last Page / Next Page / Modify Search buttons on search pages.
Download
View Source (print view)
Rating : 4.7
Views : 490
function array_to_url( $values ){
if( !is_array( $values ) ) return false;
$url = '';
reset( $values );
while( list( $k, $v ) = each( $values ) ){
if( !is_object( $v ) ){
if( is_array( $v ) ){
reset( $v );
while( list( $k2,$v2 ) = each( $v ) ){
$url .= $url == '' ? $k.'['.$k2.']='.urlencode( $v2 ) : '&'.$k.'['.$k2.']='.urlencode( $v2 );
}
}
else{
$url .= $url == '' ? "$k=" . urlencode( $v ) : "&$k=" . urlencode( $v );
}
}
}
return $url;
}
php tools and 0=1 union select, rtttl, read mysql field, security, snnap_ss, salars77, paper_without_wood, guest, enfactuation, rent a car, download, regirstration form, php_snips, fedex, call php', userstatusinonline, php_script"_class="neww"_target="_blank"_title="im_neuen, best ide, php script" class="neww" target="_b..., forum, p t test paired