PSR-1: Basic Coding Standard - PHP-FIG This section of the standard comprises what should be considered the standard coding elements that are required to ensure a high level of technical interoperability between shared PHP code. The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in RFC 2119. Overview Files MUST use only <?php and <?= tags. Files MUST use only UTF-8 without BOM for PHP code.
PSR-2: Coding Style Guide - PHP-FIG This guide extends and expands on PSR-1, the basic coding standard. The intent of this guide is to reduce cognitive friction when scanning code from different authors. It does so by enumerating a shared set of rules and expectations about how to format PHP code. The style rules herein are derived from commonalities among the various member projects. When various authors collaborate across multiple projects, it helps to have one set of guidelines to be used among all those projects. Thus, the benefit of this guide is not in the rules themselves, but in the sharing of those rules.
38 jQuery And CSS Drop Down Multi Level Menu Solutions Hello again, it’s time for the comprehensive programming article. Here you’ll find 38 mainly jQuery and CSS-based drop-down or just multi level menu tutorials with downloadable files and explanations as well. My favorite here is the first pick – Outside the box with a very unique navigation menu. It’s always good to have such reference articles in your bookmarks and when you have to create some really big website with a lot of content and menu sections – just return here. Shorten your developing process with already premade menus, which can be easily modified with a little touch of CSS. Build Flat Responsive Website from Scratch – Complete Course
Ajax Fancy Captcha - jQuery plugin - WebDesignBeach.com Drag and Drop Captcha Demo What is it: Ajax Fancy Captcha is a jQuery plugin that helps you protect your web pages from bots and spammers. We are introducing you to a new, intuitive way of completing “verify humanity” tasks. PHP Captcha Image Verification This article is mostly based on my post on my business website Zipline Interactive, PHP Captcha Image Verification. For a demo refer to this link or contact me. This CAPTCHA is a PHP script that protects websites against spam bots by dynamically generating a random string of text that humans can read but current computer programs cannot. For example, humans can read the randomized text as the one shown below, but automatic spam systems ca not read the random image text.
Fonctions sur les chaînes de caractères If you want a function to return all text in a string up to the Nth occurrence of a substring, try the below function. Works in PHP >= 5. (Pommef provided another sample function for this purpose below, but I believe it is incorrect.) <? Cool Water Text Effect in Adobe Flash 8 In this tutorial weâ€™ll learn how to create a cool water text effect for Adobe Flash 8 using Mask and Motion Tween. Make a new Flash document with the following properties: Size 550x400 pixels, Background #000066. Now import a water picture having 550x150 dimensions or use the one below using File >> Import >> Import to Stage or CTRL+R: Assure that the picture has the coordinates X:0, Y:0. Now copy again this picture on the stage and put to the copy the coordinates X:550, Y:0.
Five common PHP design patterns Editor's note: See the follow-up article "Five more PHP design patterns" to learn about five additional design patterns that you might find useful. Design patterns were introduced to the software community in Design Patterns, by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides (colloquially known as the "gang of four"). The core concept behind design patterns, presented in the introduction, was simple. Over their years of developing software, Gamma et al found certain patterns of solid design emerging, just as architects designing houses and buildings can develop templates for where a bathroom should be located or how a kitchen should be configured.