Zend PHP Certification Bangla Guide

Tuesday, 22 March 2016

Question Set 1

1. $pattern = "GHI";
$subject = "ABCDEFGHIJKLMN";
If you find the pattern "GHI" which is the faster way to find it?

a) preg_match()
b) strpos

Ref: http://php.net/manual/en/function.preg-match.php
==================================================

2.
Posted by Anwar Hossain at 21:42
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2016 (31)
    • ►  June (2)
    • ►  May (8)
    • ►  April (1)
    • ▼  March (20)
      • Named Subpattern
      • Question Set 1
      • Getting the domain name out of a URL
      • How to Pass Zend PHP 5.3 exam in first attempt?
      • Some of the predefined POSIX in regular expression
      • Difference between greedy and ungreedy
      • Subpattern in regular expression
      • Non greedy/ungreedy regular expression
      • Look Aheads, Look Behinds regular expression
      • substr_compare() : compares main_str from position...
      • strcspn : Returns the length of the initial segme...
      • chr and ord in respect of printf, sprintf
      • bin2hex and hex2bin
      • addcslashes
      • addslashes
      • sprintf
      • printf
      • Difference among intersect functions
      • Difference among Sort, SORT_NATURAL, SORT_FLAG_CASE
      • Array Specials
Simple theme. Powered by Blogger.