• 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

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

7
10
8
9

ANSWER DOWNLOAD EXAMIANS APP

PHP Regular Expressions
Which one of the following functions is used to search a string?

preg_find
preg_search
preg_match
preg_found

ANSWER DOWNLOAD EXAMIANS APP

PHP Regular Expressions
[:alpha:] can also be specified as.

[a-z]
[A-Za-z0-9]
[A-z]
[A-za-z]

ANSWER DOWNLOAD EXAMIANS APP

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

10
8
9
7

ANSWER DOWNLOAD EXAMIANS APP

PHP Regular Expressions
What will be the output of the following PHP code?
$username = "jasoN";
if (ereg("([^a-z])",$username))
echo "Username must be all lowercase!";
else
echo "Username is all lowercase!";

Error
No Output is returned
Username is all lowercase!
Username must be all lowercase!

ANSWER DOWNLOAD EXAMIANS APP

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

preg_find_replace()
preg_replace()
preg_findre()
preg_find()

ANSWER DOWNLOAD EXAMIANS APP
MORE MCQ ON PHP Regular Expressions

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
↑