Loading ...
Sorry, an error occurred while loading the content.
 

Re: numbers

Expand Messages
  • shahid9829
    Hi MB, If the numbers in that list have seperated by characters like , ; or any other, u can follow: function inside($num, $list, $separator = , ) { return
    Message 1 of 2 , Feb 25, 2007
      Hi MB,
      If the numbers in that list have seperated by characters like ', ;'
      or any other, u can follow:

      function inside($num, $list, $separator = ',')
      {
      return in_array($num, explode($separator, $list));
      }
      I think it will work.

      MD. Nur Hossain
    Your message has been successfully submitted and would be delivered to recipients shortly.