Hi
Got it working as expected. Try the following modified class
class customer {
$name;
$phone;
function customer($name, $phone) {
$this->name = $name;
$this->phone = $phone;
}
function getName() {
return $n
> > Hi
> > I'm sorry, but I don't understand well what you are trying to tell me.
> >
> > Let's imagine I want to modify an existent XML file called customers.xml
> >
> > I should do this steps
> >
> > $doc = new DOMDocument();
> > $doc->load('customers.xml');
> > $root = $doc->getElementsBy
> Hi
> I'm sorry, but I don't understand well what you are trying to tell me.
>
> Let's imagine I want to modify an existent XML file called customers.xml
>
> I should do this steps
>
> $doc = new DOMDocument();
> $doc->load('customers.xml');
> $root = $doc->getElementsByTagName("customers")
Hi
I'm sorry, but I don't understand well what you are trying to tell me.
Let's imagine I want to modify an existent XML file called customers.xml
I should do this steps
$doc = new DOMDocument();
$doc->load('customers.xml');
$root = $doc->getElementsByTagName("customers"); // to take the roo
> Hi all,
>
> I'm trying to create some XML from PHP code to save data about customers, but
> I found many problem and it doesn't work.
>
> The class Customer is quite simple I put it right below
>
>
> class customer {
> var $name;
> var $phone;
>
> function customer(
Hi all,
I'm trying to create some XML from PHP code to save data about customers, but I
found many problem and it doesn't work.
The class Customer is quite simple I put it right below
name = $name;
$this->phone = $phone;
}
function getName() {
re