Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach ($details as $field)
- {
- if (gettype($field) != "array")
- {
- $state2 = $doc2->createElement($names[$index]);
- $state2->appendChild( $doc2->createTextNode( $field ) );
- $b2->appendChild( $state2 );
- }
- else
- {
- $single = "";
- for ($a = 0; $i < sizeof($field); i++)
- {
- $single = $single . $field;
- }
- echo $single . "<br>";
- $state2 = $doc2->createElement($names[$index]);
- $state2->appendChild( $doc2->createTextNode( $single ) );
- $b2->appendChild( $state2 );
- //var_dump($field);
- }
- $index = $index + 1;
- }
- //$b2->appendChild( $state2 );
Advertisement
Add Comment
Please, Sign In to add comment