Search
 
SCRIPT & CODE EXAMPLE
 

PHP

simplexml_load_string alternative php

$LoadXML = file_get_contents("xmldoc.xml");
$xml = simplexml_load_string($LoadXML);
foreach($xml->xml->user as $entry)
{
    $ID = $entry->id;
    $name = $entry->name;
    $age = $entry->age;
}
for($x=0; $x!=count($entry)-1; $x++)
{
echo $ID[$x]."
";
echo $name[$x]."
";
echo $age[$x]."
";
}
Comment

PREVIOUS NEXT
Code Example
Php :: valdidate laravel if falid 
Php :: php artisan create controller inside folder 
Php :: format a number with leading zeros in php 
Php :: php set environment variable 
Php :: php artisan serve on lumen 
Php :: laravel generate unique db token 
Php :: css not working in live laravel project 
Php :: bindparam php 
Php :: php match 
Php :: laravel eloquent get specific columns using with function 
Php :: submonth carbon 
Php :: php artisan route cache 
Php :: ckeditor laravel 
Php :: laravel query builder select 
Php :: write php online 
Php :: json_deocde 
Php :: laravel groupby and latest 
Php :: composer remove phpmailer 
Php :: yii2 clear schema cache 
Php :: laravel amount migration 
Php :: laravel when condition 
Php :: import local js file laravel 
Php :: laravel factory 
Php :: laravel activity log 
Php :: how to solve php mysqli_query function problem does not execute 
Php :: insert multiple rows laravel 
Php :: static php 
Php :: php sprintf 
Php :: laravel search 
Php :: header php location 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =