Plugins  LAST
 All Data Structures Files Functions Variables Pages
Data Structures | Functions
class_ext_tvagen.php File Reference

Go to the source code of this file.

Data Structures

class  Ext_Tva_Gen
 

Functions

 get_array_nodup ($p_string)
 transform a string into an arrau without empty element and duplicate the array is sorted More...
 

Function Documentation

get_array_nodup (   $p_string)

transform a string into an arrau without empty element and duplicate the array is sorted

Parameters
$p_stringstring containing a comma a separator
Returns
array

Definition at line 36 of file class_ext_tvagen.php.

References $array, and $r.

36  {
37  $array=explode(',',$p_string);
38  sort($array);
39  $array=array_unique($array);
40  $result=array();
41  foreach ($array as $val) {
42  if ( $val == '') continue;
43  $result[]=$val;
44  }
45  $r=join(',',$result);
46  return $result;
47 }
$r
if(isset($_POST['remove'])) $array