Skip to content

Commit

Permalink
Whoops... left some testing code in.
Browse files Browse the repository at this point in the history
  • Loading branch information
thepurpleblob committed May 1, 2008
1 parent 0393331 commit 7158844
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions question/format.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -552,32 +552,6 @@ function importimagefile( $path, $base64 ) {
return $newfile; return $newfile;
} }


/**
* Utility function to reconstruct part of the
* xml data structure (from xmlize) as a string in order
* to identify the actual data therein
* @param array $xml section of the xml data structure
* @return string data with everything else removed
*/
function xmltostring( $xml ) {
// if it's not an array then it's probably just data
if (!is_array($xml)) {
$text = s(addslashes($xml));
}
else {
// otherwise parse the array
$text = '';
foreach ($xml as $tag=>$data) {
// if tag is '@' then it's attributes and we don't care
if ($tag!=='@') {
$text = $text . $this->xmltostring( $data );
}
}
}

return $text;
}



/******************* /*******************
* EXPORT FUNCTIONS * EXPORT FUNCTIONS
Expand Down

0 comments on commit 7158844

Please sign in to comment.