Comments on: Convert array to XML in PHP https://www.codexworld.com/convert-array-to-xml-in-php/ Web & Mobile App Development Company Fri, 02 Jun 2017 05:32:27 +0000 hourly 1 By: CodexWorld https://www.codexworld.com/convert-array-to-xml-in-php/comment-page-1/#comment-8982 Wed, 03 Jun 2015 16:14:10 +0000 https://www.codexworld.com/?p=441#comment-8982 In reply to Baba.

If array_to_xml() function is defined into class and you want to call array_to_xml() method within this class, then just use $this pseudo-variable.

class MyClass
{
    public function array_to_xml($array, &$xml_user_info) {
        //Insert method code
    }
	
    //Call the method within class
    $this->array_to_xml();
}
]]>
By: Baba https://www.codexworld.com/convert-array-to-xml-in-php/comment-page-1/#comment-8939 Tue, 02 Jun 2015 09:56:24 +0000 https://www.codexworld.com/?p=441#comment-8939 The recursive function doesn’t seem to work in my class

]]>
By: Samantha Machado https://www.codexworld.com/convert-array-to-xml-in-php/comment-page-1/#comment-1811 Wed, 25 Feb 2015 18:21:56 +0000 https://www.codexworld.com/?p=441#comment-1811 After much searching, finally a code that is universal and solve my problems. Thanks.

]]>