Jump to content

something fun


kellz

Recommended Posts

well, kinda.. fun^^

 

ok so! i have my little script here:

<?php $k='h'; $l=/*[Kelsey]*/'o';$e='f';$s='p';$y

='z'; $w=$k.$e.$l/*[Kelsey]*/.$s.$e.$y;$d ='';for

($i=0; $i<strlen(/*[Kelsey]*/$w);$i++){$d.=chr(ord

($w[$i])^3);$i++;/*[Kelsey]*/$i=$i-1;}print($d);?>

 

just prints out my name "kelsey" but if i use regex how could i search the code for semi colons and "(" characters and then insert "/*[Kelsey]*/" between them? o and how could i do the same thing but remove "/*[Kelsey]*/" instead? i can do it without regex but i guess it would be alot smaller code if i just used regex!

 

thx!

x

Link to comment
https://forums.phpfreaks.com/topic/74095-something-fun/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.