Odd Custom PHP Variables
Creating custom-named PHP variables is pretty easy:
${'username'} = 'User1010'; // same as $username = 'User1010';
But did you know that you can create variables with spaces? The following will work:
${'name of user'} = 'David Walsh';
echo ${'name of user'};
I can't see any reason to do this, but it's possible.
![Creating Scrolling Parallax Effects with CSS]()
Introduction
For quite a long time now websites with the so called "parallax" effect have been really popular.
In case you have not heard of this effect, it basically includes different layers of images that are moving in different directions or with different speed. This leads to a...
![9 More Mind-Blowing WebGL Demos]()
With Firefox OS, asm.js, and the push for browser performance improvements, canvas and WebGL technologies are opening a world of possibilities. I featured 9 Mind-Blowing Canvas Demos and then took it up a level with 9 Mind-Blowing WebGL Demos, but I want to outdo...
![Background Animations Using MooTools]()
One of the sweet effects made easy by JavaScript frameworks like MooTools and jQuery is animation. I ran across this great jQuery tutorial that walks you through animating a background image of a page. Here's a quick MooTools code snippet that...
![MooTools Typewriter Effect Plugin Upgrade]()
Last week I shared my MooTools Typewriter Class with you. It was pretty well received and I got a few feature requests that I've implemented including "backspacing" and character variance delays. I'm not going to explain the old code, so click here...
Reminds me of a templating variable. Could possibly be used in the case of having non-programming html-designers making the pages.
Hopefully someone else knows more about the benifits of this. :)
I’m really not sure, but as I used flash and dynamic variable creation, this somehow looks familiar for me. It makes sence in flash, but I don’t know why I should do this in php. I mean, arrays are better that that, right?
I dunno! Makes me wondering …
lol, thats useful innit? ;)
Great site btw. cheers.