Quantcast
Channel: Php2s.com Linux Guide » php examples
Browsing latest articles
Browse All 5 View Live

Closures are coming to PHP

Dagfinn has a post looking at using the new closure feature of PHP 5.3. He compares using foreach for iteration versus array_map. “Interesting,” he concludes, “but not necessarily better than...

View Article



Benchmarking PHP’s Magic Methods

Larry Garfield has an interesting set of benchmarks covering many of PHP’s magic methods. His results correspond pretty well to my own benchmarks in the area. The thing to take away is that its not...

View Article

PHP: Let Your Properties be Properties

There is a coding pattern that I see (and have used) in PHP code that defines generic methods on a class for setting and getting properties.function set($name, $value); function get($name);Google code...

View Article

Camel Case to Spaces or Underscore – PHP Code

Most of the php development project, I need to convert camelcase strings to space-separated strings. Recently while working on a project, I found I needed to convert camelcase strings to underscore...

View Article

PHP Code: Cookie based login form and get last login time

In this example you will learn how to get last login time from Cookie based login using PHP. <html> <head> <title>Enter Password</title> </head> <body> <form...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images