Steven Mercatante

Steven Mercatante

2 posts tagged with "php"

View all tags

    Python Comprehensions for PHP Developers

    When moving from PHP to Python, your experience with many of the basic language features and constructs are easily carried over. Sure, the syntax is different, but not radically so. Things like loop constructs, basic data structures and even OOP don't take long to feel familiar. One area where this… Read

    A better way to combine PHP arrays

    I recently had a use case where I needed to combine two arrays in PHP... ... to end up with an array that looked like this: In python, I'd just use the zip function - I wanted something similar in PHP. The solution was to pass null as the first argument to array_map : For comparison's sake… Read