Give any ten basic functions in PHP?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / mahesh
1)getdate()//getting the current dates
2)ceil()//round to the next higher value.
3)floor()//rounds to the minimum value(killing the
fractional part)
4)round() round the value according to the fractional part
5)isset() checking for a setting condition
6)explode()// explode a string with the values given
7)print_r()prints trhe values of an array, also a variable
to an array
8)define()//define a value to a text...(Permanent)
9)header("Location: text.php)//jump to the location given
10)include()//include a file..
Is This Answer Correct ? | 9 Yes | 1 No |
Answer / nagarjuna
echo
print_r
isset
post
get
include
require
session
strlen
strpos
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sudheer
in php
math functions
string functions
array functions
image functions
file functions
so u see the php.net website
Is This Answer Correct ? | 1 Yes | 3 No |
what are the current or latest versions of LAMP ? Linux, Apache, MySql, PHP
Can we override magic methods in php?
What is substr() in php? And how it is used?
What is the exact Diff. between include_once() and require_once() in PHP?
Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?
Difference between mysql_connect and mysql_pconnect?
What is meant by ‘passing the variable by value and reference' in php?
How can i change the extension name like i have a page which name aboutme.php but i want to show it aboutme.php3 or aboutme.aspx?
How can I maintain the count of how many persons have hit my site?
1 Answers MTOG, Rushmore Consultancy,
What is slim framework?
Is php is dying?
Tell me how the result set of mysql be handled in php?