Source Rally PHP Community Scripts .. Sign up .. Login
arrays in php examples
Access: Public      Tags: arrays
Add to favourites       Subscribe comments       Copy code       Bookmark
$Frield_array=array();


global $Ref_array;
                                

$Ref_array=$Referee_Id;


if(in_array($Field_Id,$Frield_array))

//////////////
<INPUT TYPE = 'HIDDEN'  name='Item_Id[]' value='$Item_Id'>


if(sizeof($chkevent)>0)

//////////////////////////
removing duplicate values from array 
Example 1. array_unique() example

<?php
$input 
= array("a" => "green""red""b" => "green""blue""red");
$result array_unique($input);
print_r($result);
?>  
 
////////////////////////////////////
converting an array into comma separated 
/////////////////////
<?php

$array 
= array('lastname''email''phone');
$comma_separated implode(","$array);

echo 
$comma_separated// lastname,email,phone

?>
Add to favourites       Subscribe comments       Copy code       Bookmark
Sign up to add your own comment here!

Comments

priya - 09-08-2007 12:47
Add to friends       Mail user
hi wats special over here i dont thnik any...
More comments: 1
Shared by:

hamid_awais

Mail user Add to friends
All user contributed content is available under the LGPL unless specified otherwise.
Remaining copyrights Regin Gaarsmand © 2006-2008
About SourceRally.net
Programador PHP