Sometimes we need to validate if user has entered the correct email id format or not in contact form or signup
form or guest book. In PHP we can use regular expression to validate if the user entered emailid is in correct
format or not. Below code sample of a method just does the same. If you have any queries please post at PHP
category in the forum and I'll try to answer.
As my grandfather always says, "If you want something done right, do it yourself." However, these days you often have to rely on third-party tools to help you get your job done. To serve even a simple, static HTML Web page you need to rely on your Web server, which in turn relies on your operating system, and so on. While you can't create all these programs yourself, most of the ones that you rely on?your Web server, for example?provide an API to help you extend and add functionality to these programs, so if they don't meet your needs you can always modify them.
PHP?or more properly the PHP Hypertext Preprocessor?lets you easily create dynamic Web sites by embedding code into the Web page (HTML) itself. This open-source software is very popular on the Web where open-source products like Apache and Perl predominate. While PHP offers considerable power as a scripting language, its true power lies in the fact that if it doesn't offer what you need, you can easily extend it with either C or C++. To extend PHP 4, you need to understand the PHP API (more specifically the Zend API, since PHP 4 is powered by the Zend Engine).
Fluent Interfaces is not a new programming construct, in fact many of you may be doing it without knowing it?s name. In other languages it is commonly known as ?chaining?. However, PHP developers have not been able to use them until PHP 5. Now with PHP 5 and the ability to directly dereference an object, PHP developers can build objects using fluent interfaces.
This article examines how PHP handles passing of variables internally, as well as how this relates to memory usage. This information is very useful for any professional PHP developer as it shows how passing variables by reference will normally result in more (not less) memory being used.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.