Skip to content

Instantly share code, notes, and snippets.

@fhferreira
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save fhferreira/9475943 to your computer and use it in GitHub Desktop.

Select an option

Save fhferreira/9475943 to your computer and use it in GitHub Desktop.
function ReadXml($xmlstr){
$xml = simplexml_load_string($xmlstr);
echo $xml->getName()."\n";
foreach($xml->children() as $child){
echo $child->getName().': '.$child."\n";
}
}
function GeneratePassword($length, $string) {
return substr(str_shuffle($string), 0, $length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment