Some of PHP Interview Question I encounter while in interview.
PHP Interview Questions:
- What is web1.0,web2.0? Answer : Web1.0 is like a dictionary where we get the information we cant edit or share the things , Where as web 2.0 is the new version used world wide using web2.0 we can share views(Social Networking),videos(Youtube),images(flickr).
- List Some String Functions Answer : addslashes() - Returns a string with backslash in front of the predefined characters. echo() - Output a string. explode() - Break a string in to an array. implode() - Return a string from the elements of an array ltrim() - Remove the white space from the left of the given string. print() - Output a string. str_split() - Split a string it a array. strlen() - Return the length of the string.
- Write a HTML form tag for Uploading a file Answer : form action="upload_file.php" method="post" enctype="multipart/form-data"
- Difference Between mysql_connect and mysql_pconnect Answer : mysql_connect Open a connection to a MySQL Server mysql_pconnect Open a persistent connection to a MySQL server, Persistent connections are links that do not close when the execution of your script ends.
- What is JQuery Answer : Jquery is a lightweight Javscript Library that helps interaction between javascript and HTML
- Some Features of JQuery Answer : DOM element selections using the cross-browser open source selector engine Sizzle,DOM traversal and modification,Events,CSS manipulation,Effects and animations,Ajax,JavaScript Plugins