-4

Very simple and probably noob question about php. i run the following;

var_dump($this->criteria);

which returns me :

object(SimpleXMLElement)[24]
public 'id' => string '3C222489-4BE4-47BB-A731-EFCF98B9979F' (length=36)
public 'parentId' => string '_001' (length=4)
public 'template' => string '_100' (length=4)
public 'name' => string 'New Report' (length=10)
public 'description' => 
object(SimpleXMLElement)[23]
public 'breakdown' => string 'talkgroup' (length=9)
public 'selectedColumns' => 
array
  0 => string 'talkgroup' (length=9)
  1 => string 'id' (length=2)  
public 'dc' => string '1337185046621' (length=13)

Great! so now I can see that selectedColums is an array.. so

Simon
  • 3
  • 1

1 Answers1

1

Assuming that your question is:

How can I determine whether selectedColums is an array?

Try this:

is_array($this->criteria->description->selectedColumns)
gen_Eric
  • 223,194
  • 41
  • 299
  • 337
Ayman Safadi
  • 11,502
  • 1
  • 27
  • 41
  • Don't know what happened. Sorry all, first post. however the answers correct, which is damn impressive! – Simon Jun 28 '12 at 10:27