Questions about PHP

来源:互联网 发布:将ubuntu安装在u盘里 编辑:程序博客网 时间:2024/05/17 02:49
1.Describe the functionality of addslashes(). Which four characters does it tackle in string formatting?


2.Describe the functionality of magic_quote_gpc, magic_quote_runtime and magic_quote_symbase?What does gpc stand for?


3.Describe the functional difference between explode() and strtok()? How to use substr()?



4.Describe the functional difference between strstr(), stristr(), strchr() and strrstr()?


5.What is the third parameter in function strpos() and its functionality?What does the function return if there is no substring matching
the string? What kind of problem it may cause and how to fix it?


6.How many parameter does str_replace() has? And the difference between it and substr_replace()?


7.In php what functions are used to compare string?


8.What is character class?


9.What does ^.{2}$ mean?


10.In regular expression what is the functional difference btween character ^ inside and outside bracket?


11. What do \0, \1, \2 mean in second parameter of function ereg_replace()?


11.How to achieve repetition in regular expression? Subexpression? Counted_subexpression?


12.pipe的功能是什么?


13.How to match special characters such as .,{, \, or $? How to escape special characters in PHP? 


14.A php string represents a regular expression containing a backslash need how many backslashes? How about $?


15.Describe the squence how php interpreter and POSIX parser parse the code?


15.How many special characters exsit in POSIX regular expression?


16.Numerate the special characters used in bracket.


17.In php, what kind of functions use regular expressions?


18.what does .mean in php? what does it mean in regular expression? Does its functionality show consistent in regular expression? 


19.what the difference between ereg() and eregi()?


20.what is the functionality of nl2br()?


21.How many built-in methods exception class has? Which could be overwrote in inheritant class?


22.In php, could a abstract class has no abstract menthods at all?


23.Give some names of magic constants or predefined constants.


24.What are the differences in funcionalities between trim(), ltrim() and rtrim()?


25.Describe the function of nl2br().


26.What the difference exist between echo() and print()? And what differences exist between print(), printf() and sprinf()?


27.Give the definition of conversion specification.


28.How to change the case of a string? How to format string for storage?


29.What is the functional difference between file_get_content() and getfile()?


30.How many parameter does cookies have?


31.Give functions in php which are used to set cookie parameters.


32.Describe functionality of strtr() and two ways to use it.


原创粉丝点击