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

How to get a total number of rows available in the table?

489


What are the different types of array in php?

518


What are html entities?

509


How to upload file in php?

545


Explain what does $_server means?

579






How to convert a json string to an array in php?

559


What is session php?

513


Which is better python or php?

568


what the new feature add in php 7.2?

542


What are some new features introduced in php7?

8380


what is benefit of magento?

2035


can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.

3075


Is php 5 still supported?

524


Is python easier than php?

547


Explain the difference b/w static and dynamic websites?

499