/ Published in: PHP
Transform $GET or $POST in a string to add to an URL and send variables and values. Argument: Receive an $GET O $POST array function. Returns: variables concatenation to add to the URL.
Expand |
Embed | Plain Text
function getVars($arrVars){ $txtGetVars=''; foreach ($arrVars as $Key=>$Value){ $txtGetVars .= ($txtGetVars=='')? $Key.'[]='$arrVars[$Key][$k] :'&'.$Key.'[]='.$arrVars[$Key][$k]; } else{ $txtGetVars .=($txtGetVars=='')? $Key.'='.$Value :'&'.$Key.'='.$Value ; } } } return $txtGetVars; }
You need to login to post a comment.
