I'm a Drupal Architect and developer. I've been a software developer since all mice had fur, "front-end" and "back-end" primarily related to horses, and blue tooth was something you got from eating raspberry Italian ice. There's a line in the ether between undiscovered wisdom and uncorrected folly. Feel free to have a poke around and note you might find either.
It seems crazy that php doesn't have a native roundDown function.
I love PhpStorm, but even though I've been using it forever, much of it remains a mystery. The latest problem I had was getting it to work with xdebug in the browser (again) after upgrading to version 8.
I spent the usual two lifetimes getting xdebug working (again) after upgrading to a new major version of phpStorm.
.swf files contain the information necessary to display Flash animation. How to embed in Drupal 7 ... so what to do?
If you don't have User 1 (or some other user) access in your local setup, it's easy to remedy.
Anonymous functions were added to php in version 5.3, and are most often used for assigining a function to a variable to be used later as a callback. They also are useful for declaring limited-use or one-time-use functions without declaring them in the global space.
Sometimes it is desired to receive a value BACK from an anonymous function, and how to do that is not intuitive.
First, let's look at how it works with a typical function:
Have you ever tried to vertically align a horizontal arrangement of list items, such as a row of horizontal menu items?
Recently, I had the need to format a single content type differently depending on where it was presented