Ever wondering to calculate 2 + 2 ? Sure you have. But what if your formula comes in a string input ? So, how to calculate "2 + 2" or "4 * ( 3 - 5 )" in PHP ? We'll have the function calculate_string($mathstring). function calculate_string( $mathString ) { $mathString = trim($mathString); // trim white spaces $mathString = ereg_replace ('', '', $mathString); // remove any non-numbers chars; exception for math operators $compute = create_function("", "return (" . $mathString . ");" ... Read More
PHP finally has an anthem.
via Chris Shiflett
Lyrics
Oh yeah. (Oh yeah.)
(Just one day it just hits you all of a sudden. It’s just like…)Oh yeah, I’m so PHP this year.
Got a mic in the left, and ‘n the right, cold beer.
Compile that Apache.
Now we got version 5 and two chicks laid out in the back seat.
Yeah, sometimes the code looks a little trashy.
But, this ain’t ColdFusion.
Stop talking sassy, and pull up them panties.I’m really… I’m just saying; why don’t you go check out the API reference docs.
They’re really good.
(They are.)Is it underline or CamelCase?
I can’t remember; I’ve been busy poundin’ cakes.
It’s what PHP developers do.
We get more booty than you.
Don’t be jealous when you smell us; check the Boolean dude, it reads…[chorus]
(Oh yeah.)
Check the Boolean dude; it reads true.
(Oh yeah.)
PHP gets more booty than you.
(Oh yeah.)
Check the Boolean dude; it reads true.
(Oh yeah.)
PHP gets more booty than you.
(Oh yeah.)
Check the Boolean dude; it reads…True, PHP gets more booty than you,
but we still keep it clean.
MySQL really real wrappin’ all strings.
Filter input like it was a herpes strain.
(You know what I’m saying?)
That’s why we got the STD class.
Objects we pass might need to be trashed.
Girl, what you doin’?Come gunzip this.
Be my witness as I strip this string of all slashes.
Now, I got what I need.
No traversing my filesystem when you ain’t supposed to be.
That’s how it is rolling with PHP.
All the hot chicks, yeah, they love PHP.
(It’s so true.)
(Oh yeah, that’s what I’m talking about.)[chorus]
(Yo, yo, tell ‘em about it.)
PHP: Hypertext Preprocessor.
It’s real out here.
Somebody better call the mod_security officer.
My concern is for those weak half-assed scripting languages.
The ones that can’t hang with us.
It’s strange, but they get hanged and remain in dust.
Some aren’t quite dead and still remain a pain to us.PHP’s got more muscle.
In a nutshell, nothing’s quite like it.Predicted by the ancient cultures and the psychics.
The ones who dreamt in recursive states.
Whispering premonitions of open source community gates.
PHP.(Oh yeah…)
[chorus]
The Mozilla developers have released the beta version of upcoming Firefox 4.0 web browser. You might know that this version was suggested as Firefox 3.7 previously and has now been renamed to Firefox 4.0.
A release date of the final version of Firefox 4 is expected somewhere at the end of this year.

firefox 4 beta
Firefox 4.0 has a new interface design and some new improvements:
You may find more information about Firefox 4.0 by visiting the official release notes page.
Google PageRank update, as the name suggests, means updation of your PageRank by Google, i.e updating your website’s old PageRank and assigning your website a new Google PageRank.
Though the update of PR does not have significant effect on Google rankings, but still people anxiously wait for the update.
Pagerank have a range from 0-10. A site with PR 0 is least important and the site with PageRank 10 is the most important in the eye of Google.
| Last PageRank (PR) Update | 31 December 2009 |
| First 2010 PageRank (PR) Update | 31 March – 3 April 2010 |
| Second 2010 PageRank (PR) Update | 30 June – 31 July 2010 |
| Third 2010 PageRank (PR) Update | 31 December – 3 January 2011 |
Check Page Ranking is a free tool to check your Google PR.