1.

([\w-]+) will match ___________(a) one word characters(b) one or more word characters(c) one or more word characters and/or hyphens(d) one or more word characters and hyphensThis question was posed to me during an online exam.Query is from Updating and Deleting Entries topic in section Objects and Databases in PHP of PHP

Answer»

Right option is (c) one or more WORD characters and/or hyphens

The explanation: ([\W-]+), will match one or more word characters and/or hyphens—which is what your custom entry URLS CONSIST.



Discussion

No Comment Found

Related InterviewSolutions