Guest User

Untitled

a guest
Aug 17th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Detect number and wrap specific function?
  2. $num = 123123123;
  3.  
  4. if( substr($num, 0, 2) == '04' )
  5. {
  6. // call first function
  7. }
  8. elseif( substr($num, 0, 4) == '1300' )
  9. {
  10. // call other function
  11. }
Add Comment
Please, Sign In to add comment