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.
![Facebook Open Graph META Tags]()
It's no secret that Facebook has become a major traffic driver for all types of websites. Nowadays even large corporations steer consumers toward their Facebook pages instead of the corporate websites directly. And of course there are Facebook "Like" and "Recommend" widgets on every website. One...
![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...
![Unicode CSS Classes]()
CSS class name structure and consistency is really important; some developers camelcase classnames, others use dashes, and others use underscores. One thing I've learned when toying around by HTML and CSS class names is that you can actually use unicode symbols and icons as classnames.
![Create Spinning, Fading Icons with CSS3 and MooTools]()
A goal of my latest blog redesign was to practice what I preached a bit more; add a bit more subtle flair. One of the ways I accomplished that was by using CSS3 animations to change the display of my profile icons (RSS, GitHub, etc.) I...
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.