What if I told you that with as little as 3 lines of code, you could highlight code on your site? You'd jump at it, wouldn't you? Why not run with the big boys? Your users will love you for it and for good reason. It greatly increases readability.
C/C++ programmers have used references for years, but did you know that you can also use references in PHP? In this article Jan explains what references are and exactly how to use them with PHP...
The tutorial goes on to talk about the differences between what would be considered a "structure" in PHP (since it doesn't really have the ability to create those).
Many developers struggle to find an efficient method of database design when they have multiple options to set. Most resort to having a field for each option and setting each field either on or off.
Today, we will learn a far more efficient method of storing these options. With the help of bitwise operators, we can eliminate all but one of those option fields.
Wer PHP zur Programmierung von Konsolen-Applikationen verwenden möchte, steht sicherlich irgendwann einmal vor der Frage, wie er Inputströme so benutzen kann, dass er zum Beispiel den Inhalt einer eingehenden Mail analysieren kann.
This week I'll be changing gears a little bit and discussing one of the more elusive aspects of PHP -- references. For those of you with a C programming background (although they are fundamentally different), references serve the same purpose as a C-style pointer. For those of you without programming experience in C, don't worry! I'll be covering everything you'll need to know today.
Prior to PHP 4.2.0, the default value for the PHP configuration parameter register_globals was On. Many PHP programmers took advantage of the ease of use this configuration provided.
This article is intended for PHP programmers who have, in the past, relied on the register_globals On, and now wish to change their coding style to reflect the new default for this parameter. It will also be of interest to programmers using an ISP hosted PHP environment where they do not control the values of the PHP configuration file.
oliver albers geht in seinem artikel "hilfe meine variablen - update auf php 4.2" auf die von newbies häufig gestellte fragen rund um das thema "register globals" im zusammenhang mit php 4.2.x ein. für anfänger aber auch fortgeschrittene geeignet...
Among PHP's useful features are its many built-in functions, such as print() and mysql_query(), which meet a variety of needs. But PHP also allows you to write your own functions. The primary advantage of custom functions is reuse. If you don't write functions, you may have to write the same piece of code numerous times in your application, whether it's within the same PHP file or in others. Here's a look at how you can take advantage of user-defined functions in your own PHP code
One of the most underused features of PHP is the ability to use references. The problem is that using references are rather troublesome in PHP. References was not part of the original syntax but has been added later on, thus leading to a somewhat confusing syntax. There's also little support for references in the native function set.








