Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- meth0d cheatsheet provided by sp00f[[meth0d]]
- =========================================
- PHP test-
- 1. How do you get an option for a socket? --- Answer: socket_get_option
- 2. How do you find a word in a string? --- Answer: strpos
- 3. How do you open a file in PHP? (How do you get the contents of a file?) --- Answer: file_get_contents - file - fopen
- 4. What does an array look like in a statement? --- Answer: $arr = array(); OR array();
- 5. Can HTML go together with PHP? --- Answer: Yes!
- 6. Is Java and Javascript the same? --- Answer: No
- //If you don't pass the first 6, you can answer these next 4
- 7. What was PHP made in? --- Answer: C++ and C
- 8. What does ASM mean? --- Answer: Assembling or Assembly
- 9. What does an if statement else statement (in PHP look like)? --- Answer: <?php
- $d=date("D");
- if($d=="Fri"); echo "Today is Friday!"; ?>
- OR
- <?php
- $name1="Bruce";
- if($name=="true"); echo "$name1(Bruce) is a programmer"; ?>
- =============================
- Cheatsheet provided by sp00f[[meth0d]]
Add Comment
Please, Sign In to add comment