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.
![Send Text Messages with PHP]()
Kids these days, I tell ya. All they care about is the technology. The video games. The bottled water. Oh, and the texting, always the texting. Back in my day, all we had was...OK, I had all of these things too. But I still don't get...
![Designing for Simplicity]()
Before we get started, it's worth me spending a brief moment introducing myself to you. My name is Mark (or @integralist if Twitter happens to be your communication tool of choice) and I currently work for BBC News in London England as a principal engineer/tech...
![Introducing MooTools ScrollSide]()
This post is a proof of concept post -- the functionality is yet to be perfected.
Picture this: you've found yourself on a website that uses horizontal scrolling instead of vertical scrolling. It's an artistic site so you accept that the site scrolls left to right.
![Create a Simple Slideshow Using MooTools, Part II: Controls and Events]()
Last week we created a very simple MooTools slideshow script. The script was very primitive: no events and no next/previous controls -- just cross-fading between images. This tutorial will take the previous slideshow script a step further by:
Adding "Next" and "Previous" controls.
Adding...
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.