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.
![Responsive and Infinitely Scalable JS Animations]()
Back in late 2012 it was not easy to find open source projects using requestAnimationFrame()
- this is the hook that allows Javascript code to synchronize with a web browser's native paint loop. Animations using this method can run at 60 fps and deliver fantastic...
![5 Ways that CSS and JavaScript Interact That You May Not Know About]()
CSS and JavaScript: the lines seemingly get blurred by each browser release. They have always done a very different job but in the end they are both front-end technologies so they need do need to work closely. We have our .js files and our .css, but...
![HTML5’s window.postMessage API]()
One of the little known HTML5 APIs is the window.postMessage API. window.postMessage
allows for sending data messages between two windows/frames across domains. Essentially window.postMessage acts as cross-domain AJAX without the server shims. Let's take a look at how window.postMessage
works and how you...
![Instagram For MooTools]()
If you're still rocking an iPhone and fancy taking a photo every now and then, you'd be crazy not to be using an app called Instagram. With Instagram you take the photos just as you would with your native iPhone camera app, but Instagram...
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.