Home > Software Development > The glance on PHP through Perl

The glance on PHP through Perl

One month ago I started to customize SugarCRM for our company. This is a very good, hight quality software. But it ‘s based on PHP but I’ve developed on Perl during last four years. I’m not going to say “PHP is shit, Perl forever!”. I’d like just to share my impression of PHP as Perl developer.
And sometimes I’m a little bit confused about PHP. One example you can see bottom:

var $list_fields = array('id', 'first_name', 'last_name', 'account_name',      
       'account_id', 'title', 'email1'
        , 'quote_role'
        , 'quote_rel_id'
        , "team_id"
        , "team_name"

	, 'invalid_email'
);

This is a definition of some array (it’s disgasting to put each element in the quotes and use key word ‘array’). Strange isn’t it? I suspect that PHP didn’t ignore last comma in the array (Perl could do it from his birthday I guess). Thas’s way PHP developers made that trick to have possibility to drop any array’s elements without getting errors.

Categories: Software Development Tags:
  1. No comments yet.
  1. No trackbacks yet.
Get Adobe Flash playerPlugin by wpburn.com wordpress themes