I can't believe this works..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

I can't believe this works..

Post by panic! »

Image


and the result:

Image
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: I can't believe this works..

Post by VladSun »

Function names follow the same rules as other labels in PHP. A valid function name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*.
I think that this "heart" symbol should be in 7f-ff range ...
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: I can't believe this works..

Post by panic! »

it's quite sweet.

I wonder how portable it is. I had to promote the file from ASCII to UTF-8.

I'm editing the file on a Linux box from my mac. Do you think it would work on a Windows server?
User avatar
The_Anomaly
Forum Contributor
Posts: 196
Joined: Fri Aug 08, 2008 4:56 pm
Location: Tirana, Albania

Re: I can't believe this works..

Post by The_Anomaly »

panic! wrote:Image


and the result:

Image
This is all kinds of awesome :D
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: I can't believe this works..

Post by papa »

Oooh finally I can wrote a function to the people I love. :)
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: I can't believe this works..

Post by panic! »

you could definitely make some kind of easter egg in your code, or valentines egg in this case. :)
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Re: Good health

Post by markusn00b »

Lihualee wrote:bump up ..
Why bump?

And, this doesn't work for me. :(
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: I can't believe this works..

Post by panic! »

What's your set up dude?
Post Reply