Quantcast
Channel: Function Library - Sodapop Documentation
Viewing all articles
Browse latest Browse all 30

$sodapop->getStringVars($string)

$
0
0
getStringVars() takes the parameter strinf in the URL and parses out to it's parts.  It creates the variablein an array with the name and value based on the string.  So ?something=top&somethingElse=bottom would end as $urlVals['something']='top'; $urlVals['$something']='bottom'; and then get returned.

Parameters: $string - Pass the URL query string.  Expecing: URL query string

Location: class.sodapop.php

public function getStringVars($string){
$string = explode("&", $string);
foreach ($string as $i) {

list($name, $value) = explode("=", $i);
$urlVals[$name] = $value;
}
return $urlVals;
}

Viewing all articles
Browse latest Browse all 30

Trending Articles