Jump to content

unique array


webhoes
 Share

Recommended Posts

I am trying to get an unique array with this code

$voedsel = Array();
$voedsel = $pages->find("template=schildpad, schildpad_caresheet=$page->title")->id;
$result = array_unique($voedsel);

For array_unique I get the following error in Tracy: 

PHP Warning: array_unique() expects parameter 1 to be array, object given in...

 

I want to put the unique array in a custom function that makes a list with an image and title.

 

What am I doing wrong?

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...