Guest User

Untitled

a guest
Apr 25th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. meth0d cheatsheet provided by sp00f[[meth0d]]
  2. =========================================
  3.  
  4. PHP test-
  5.  
  6.  
  7. 1. How do you get an option for a socket? --- Answer: socket_get_option
  8. 2. How do you find a word in a string? --- Answer: strpos
  9. 3. How do you open a file in PHP? (How do you get the contents of a file?) --- Answer: file_get_contents - file - fopen
  10. 4. What does an array look like in a statement? --- Answer: $arr = array(); OR array();
  11. 5. Can HTML go together with PHP? --- Answer: Yes!
  12. 6. Is Java and Javascript the same? --- Answer: No
  13.  
  14. //If you don't pass the first 6, you can answer these next 4
  15.  
  16. 7. What was PHP made in? --- Answer: C++ and C
  17. 8. What does ASM mean? --- Answer: Assembling or Assembly
  18. 9. What does an if statement else statement (in PHP look like)? --- Answer: <?php
  19.  
  20. $d=date("D");
  21.  
  22. if($d=="Fri"); echo "Today is Friday!"; ?>
  23.  
  24. OR
  25.  
  26. <?php
  27. $name1="Bruce";
  28.  
  29. if($name=="true"); echo "$name1(Bruce) is a programmer"; ?>
  30.  
  31. =============================
  32.  
  33. Cheatsheet provided by sp00f[[meth0d]]
Add Comment
Please, Sign In to add comment