Hi, I'm using PHP 4. I have two scalar variables, each containing
comma separated lists of numbers
$big_list = "1,2,3,4,5,6,7, 8";
$small_list = "5,4,6";
"$small_lis t" will always contain less elements than "$big_list" and
all of "$small_lis t"s numbers will be included in "$big_list" . I want
to get a variable that contains "$big_list" minus "$small_lis t". In
the above example, the resulting varaible would contain "1,2,3,7,8" .
Any short cuts are greatly appreciated.
Thanks, - Dave
comma separated lists of numbers
$big_list = "1,2,3,4,5,6,7, 8";
$small_list = "5,4,6";
"$small_lis t" will always contain less elements than "$big_list" and
all of "$small_lis t"s numbers will be included in "$big_list" . I want
to get a variable that contains "$big_list" minus "$small_lis t". In
the above example, the resulting varaible would contain "1,2,3,7,8" .
Any short cuts are greatly appreciated.
Thanks, - Dave
Comment