• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

PHP REGULAR EXPRESSIONS QUIZ

How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions.

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$foods = array("pasta", "steak", "fish", "potatoes");<br/>$food = preg_grep("/^s/", $foods);<br/>print_r($food);

TRUE ANSWER : ?
YOUR ANSWER : ?

Which one of the following is not a preg PHP function?

TRUE ANSWER : ?
YOUR ANSWER : ?

How many functions does PHP offer for searching strings using POSIX style regular expression?

TRUE ANSWER : ?
YOUR ANSWER : ?

Which one of the following functions can be used to concatenate array elements to form a single delimited string?

TRUE ANSWER : ?
YOUR ANSWER : ?

Which one of the following regular expression matches any string containing zero or one p?

TRUE ANSWER : ?
YOUR ANSWER : ?

Say we have two compare two strings which of the following function/functions can you use?<br/>1. strcmp()<br/>2. strcasecmp()<br/>3. strspn()<br/>4. strcspn()

TRUE ANSWER : ?
YOUR ANSWER : ?

Which one of the following preg PHP function is used to do a find and replace on a string or an array?

TRUE ANSWER : ?
YOUR ANSWER : ?

What will be the output of the following PHP code?<br/>$author = "nachiketh@example.com";<br/>$author = str_replace("a","@",$author);<br/>echo "Contact the author of this article at $author.";

TRUE ANSWER : ?
YOUR ANSWER : ?

[:alpha:] can also be specified as.

TRUE ANSWER : ?
YOUR ANSWER : ?
MORE MCQ

QUIZ STATS

  • 0
  • 0

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑