Advertisement
_Error

Untitled

Aug 16th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2. $s1 = "shrr.tk/1";
  3.  
  4. $kek = substr($s1, strpos($s1, "/") + 1);
  5. if(is_numeric($kek)){
  6. echo $kek;
  7. }
  8.  
  9. if(checkstart("shrr.tk/", $s1) === true){
  10. echo "true m8";
  11. }
  12.  
  13. function checkstart($startstring, $string){
  14. if(substr($string, 0) === "$startstring"){
  15. return true;
  16. }
  17. return null;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement