Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

problem with php algorithm. need help please

Links for php scripts

Moderators: macek, egami, gesf

problem with php algorithm. need help please

Postby ugd » Wed Dec 28, 2011 1:09 pm

Code: Select all
foreach($values as $val =>$array) {
    //echo $val . '<br/>';
   //var_dump($array);

   if(is_array($array))
   {
   var_dump($array);
   }
   else
   {
   echo $val;
   }
   }

I can't find a way to read variables in URL or in a vector or in text form so that it return just
the value which is reapeating,in case it is only one value to display it or in case there are only
different values to display all of them.Please help me!It's pretty urgent.
For example if I have 1,2,3,1,4 i would like it to display 1,and if I have 1,2,3,4 to display all of them.
Need Help :( :help:
ugd
New php-forum User
New php-forum User
 
Posts: 1
Joined: Wed Dec 28, 2011 11:27 am

Return to PHP Scripts

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.