Give any ten basic functions in PHP?

Answer Posted / ramesh

1. echo();
2. date();
3. isset();
4. array();
5. in_array();
6. mail();
7. empty();
8. md5();32 chars hash
9. sha1(); 40 chars hash
10. strlen();
11. addslashes();
12. stripslashes();
13. trim();
14. ucfirst();
15. ucwords();
16. ceil(); round fractions up;
17. floor(); round fractions down
18. rand(); generates a random number
19. round(); rounds a float
20. count(); count elements in a variable
21. strtolower();
22. strtoupper();
23. copy();
24. chmod();
25. move_uploaded_file();

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?

539


How can we access the data sent through the url with the get method?

602


What does a special set of tags do in php?

552


What is the difference between $name and $$name?

530


What is serialization in php?

471






Describe session in php.

539


What is phpsessid?

523


Explain soundex() and metaphone().

582


What does $globals means?

532


How many types of array supported in php?

543


Explain me what are the main error types in php and how do they differ?

552


What are the 3 scope levels available in php and how would you define them?

514


What is the difference between "echo" and "print" in php?

530


What is php variable?

535


Explain about the data types in PHP?

563