PHPnews.io

Overview for 'nikic'



The case against the ifsetor function

Written by Nikita Popov / Original link on Jan. 10, 2014

Recently igorw wrote a blog post on how to traverse nested array structures with potentially non-existing keys without throwing notices. The current “idiomatic” way to do something like this, is to use isset() together with a ternary operator: $age = (isset($data['people'][0]['age'])) ? $data['peop…


The case against the ifsetor function

Written by Nikita Popov / Original link on Jan. 9, 2014

Recently igorw wrote a blog post on how to traverse nested array structures with potentially non-existing keys without throwing notices. The current “idiomatic” way to do something like this, is to use isset() together with a ternary operator: $age = (isset($data['people'][0]['age'])) ? $data['peop…



Are PHP developers functophobic?

Written by Nikita Popov / Original link on Aug. 9, 2012

There is this one thing that I noticed recently and that concerns me: PHP devs don’t use functions. Now, that was overly general, so let me clarify: PHP developers who have reached a certain degree of sophistication basically stop using plain functions - instead everything goes all classes and meth…