#1
  1. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,558
    Rep Power
    221

    It seems like they want to deliberately make php confusing?!


    It seems like the big guys want to deliberately make php confusing!

    How come these have reverse arguments? Is this funny to them?

    array array_filter ( array $array [, callable $callback [, int $flag = 0 ]] )
    array array_map ( callable $callback , array $array1 [, array $... ] )
  2. #2
  3. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,862
    Rep Power
    9646
    The community thinks it's hilarious.

    PHP started in the '90s. Stuff gets added and removed over time and design philosophies change. Thing is, it's too late to fix inconsistencies like that.
  4. #3
  5. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Caro, Michigan
    Posts
    14,950
    Rep Power
    4554
    It makes sense when you consider what's a required vs optional parameter.
    -- Cigars, whiskey and wild, wild women. --
  6. #4
  7. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,862
    Rep Power
    9646
    I wish all languages could standardize on order of arguments. I mean, does window.setTimeout take the callback as first or second? The only way I can remember is that I can't finish the statement with a nice simple
    Code:
    });
    at the end

    Can't we just redo PHP from the ground up in 8.0? Because drastically changing the language worked so well for Python...
  8. #5
  9. A Change of Season
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,558
    Rep Power
    221
    I think php is getting way more popular than before.

    Look at Laracasts popularity in the past few years! I mean, damn 6 million monthly.

    Yes, Php is not Java for sure but also has it's own haters.

    It looks like it's more commercial than ever and it's getting better and more mature as we go.

    I am investing time learning Laravel. on paper, it looks like a good idea.

IMN logo majestic logo threadwatch logo seochat tools logo