Posted by Ivan Omelchenko 608308824 on 06/15/05 15:13
Ivan Omelchenko 608308824 пишет:
>> Hi Everyone,
>>
>> How can I get all the values which are between Name tags as follows:
>>
>> <emp>
>> <name>N1</name>
>> <age>1</age>
>>
>> <name>N2</name>
>> <age>2</age>
>>
>> <name>N3</name>
>> <age>3</age>
>>
>> <name>N4</name>
>> <age>4</age>
>>
>>
>> </emp>
>>
>>
>>
>>
>> Regards
>> Zeeshan
>>
> preg_match("/<name>.+?<\/name>/sim", $HTML, $matches);
sorry:
preg_match("/<name>(.+?)<\/name>/sim", $HTML, $matches);
^^^^^^
that's correctly
[Back to original message]
|