A PHP Error was encountered

Severity: Warning

Message: fopen(/tmp/ci_sessionf365761fa964207dc0823807d61b529e): failed to open stream: Disk quota exceeded

Filename: drivers/Session_files_driver.php

Line Number: 156


File: /home/s949hbuup34l/public_html/webphplearn.com/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Failed to read session data: user (path: /tmp)

Filename: Session/Session.php

Line Number: 140


File: /home/s949hbuup34l/public_html/webphplearn.com/index.php
Line: 292
Function: require_once

Regular Expression in php, How to create Regular Expression
Apply for Zend Framework Certification Training


                              Preg Match
Enter Your Yousername:

"; $f=preg_match("/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9_]+\.[a-zA-Z]{2,5}$/",$a); if($f) { echo "Pattern Match"; } else { echo "Pattern Doesnot match"; } } ?> Preg Match All bold textclick me"; preg_match_all("/(<([\w]+)[^>]*>)(.*?)(<\/\\2>)/", $html, $matches, PREG_SET_ORDER); ?> John Poul
Title: PHP Guru"; preg_match_all ("/(.*)<\/b>/U", $userinfo, $pat_array); print $pat_array[0][0]."
".$pat_array[0][1]."\n"; print_r($pat_array); preg_match_all('/.+/U', 'navi', $matches); print_r($matches); preg_match_all('/pop/', "regex in php hello pop jackpop",$all); print_r($all); ?> Preg Grep

Enter String:

Preg Replace

Input :
Replaced by:

Preg Replace Callback FILTER_VALIDATE_EMAIL "; if (filter_var($email_b, FILTER_VALIDATE_EMAIL)) { echo "This (email_b) email address is considered valid."; } else { echo "This (email_b) email address is Not considered valid."; } ?> FILTER_VALIDATE_IP FILTER_VALIDATE_URL

Accept only Alphabets ctype_alpha

Output only Alphanumeric ctype_alnum

Accept only Digits ctype_digit

Delimiters When using the PCRE functions, it is required that the pattern is enclosed by delimiters. A delimiter can be any non-alphanumeric, non-backslash, non-whitespace character. Often used delimiters are forward slashes (/), hash signs (#) and tildes (~). The following are all examples of valid delimited patterns.

Remove White Space and Spcel Chracter

"; for ($x = 0; $x < $strLen; $x++) { $singleChar = substr($oldString, $x, 1); echo $singleChar; //echo "
"; if (ctype_alnum($singleChar)) { $newString = $newString . $singleChar; } } echo "
"; echo $newString; ?>

< Percentage validation in javascript jquery Having,Replace,union, clause in Mysql >

Ask a question

  • Question:
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question

Back to Top