portalZINE@Twitter
  portalZINE TV

PHP

preg_replace for multidimensional arrays

Anybody trying to use preg_replace on multidimensional arrays will see that the function is not working for those cases.

Here a quick workaround:

function 
preg_replace_array($pattern$replacement$subject$limit=-1) {
    if (
is_array($subject)) {
        foreach (
$subject as &$value$value=preg_replace_array($pattern$replacement$value$limit);
        return 
$subject;
    } else {
        return 
preg_replace($pattern$replacement$subject$limit);
    } 
}




portalZINE DEV > Development > PHP
Sunday, November 16, 2008 -   7172

PHP

Create Excel 2007 sheets with PHP

PHPExcel is providing a set of classes for the PHP programming language, which allow you to write to Excel 2007 files and read from Excel 2007 files. This project is built around the Microsoft OpenXML standard and PHP.

Really solid set of classes and I am sure any programmer has come across the need to import or export excel data at some point, without using the standard csv solution.

More


portalZINE DEV > Development > PHP
Sunday, November 9, 2008 -   8029

Javascript

JX - Object Oriented Extension to jQuery

"The objective here is an extremely small footprint widget library yet powerfull enough to have all the basic capabilities of a large library"

Really nice start and can not wait to see what widgets will be added in the future. Never used other widget libraries due to their size, nice that JX will try to keep its footprint as low as possible.

More




portalZINE DEV > Development > Javascript
Sunday, November 9, 2008 -   15901

Random thoughts

Layoff virus hits sales

The current economic situation seems to be spreading like a virus and more and more companies seem to lay off people to prepare for a cold winter ahead.

The current situation also slows down sales and online commerce, at least that is what many of my customers are currently experiencing. Some of that might also be related to the pre-christmas season, as many  hold back with purchases.

Its no wonder with gas and power prices constantly on the rise, that we are all getting more careful with what we purchase. That is also what is hitting ebay heavily, because less and less people are willing to do those quick emotional purchases.

Well lets hope that its really only a short slide this winter and things stabilze a bit start of next year.


portalZINE > Random thoughts
Thursday, November 6, 2008 -   8442

Random thoughts

Mobuzz needs your help

Mobuzz, a four-year-old Madrid-based web studio, says the economic downturn has starved it of the €50,000 ($65,235) it needs each month to run the company and has pitched its users a call for €120,000 Euros in donations by this weekend to keep its five daily shows up and running.

I am regular of the show and it would be a shame to see it go.


portalZINE > Random thoughts
Thursday, November 6, 2008 -   9497


©2001-2010 portalZINE ® New Media Network