সম্পাদনা
<?php $xml = <<<XML <user id="123"> <name>নাম</name> <land>বাংলাদেশ</land> </user> XML; $data = simplexml_load_string($xml); $attribute = $data->attributes(); print_r($attribute); ?>
পূর্বরূপ