How to check whether any data is returned in Object $twitter_xml for query abc or its empty?
$twitter_xml
abc
Following is the code:
$url=
I'm not sure what Twitter returns, but you should be able to do an isset() on a value you expect to exist.
isset()
See http://php.net/manual/en/function.isset.php
E.g.
if(isset($twitter_xml->name)) { // XML has a 'name' element } else { // No 'name' element }