| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8
Comments:
<0> Result: 1\ <1> @php echo preg_replace("/a(.*?)z/", strrev("\\1"), "abcdefhijklmnopqrstuvwxyz"); <0> Result: 1\ <1> you probably need to use preg_replace_callback <2> i'll try it now <3> @php echo preg_replace("/a(.*?)z/e", 'strrev("\\1")', "abcdefhijklmnopqrstuvwxyz"); <0> Result: yxwvutsrqponmlkjihfedcb <1> bastid <1> i hate php's stupid regex **** :P <4> lol <1> so wait.. what the hell is the point of preg_replace_callback? <5> @preg_replace_callback <4> pizza_milkshake: had to write a function to check if an input is a scientific notation of numbers <0> (PHP 4 >= 4.0.5, PHP 5) <0> mixed preg_replace_callback ( mixed pattern, callback callback, mixed subject [, int limit [, int &count]] ) <0> Perform a regular expression search and replace using a callback
<0> http://www.php.net/preg-replace-callback <4> :o <2> what does the <2> "e" option do in regex <6> it makes everything exponential <1> f this modifier is set, preg_replace() does normal substitution of backreferences in the replacement string, evaluates it as PHP code, and uses the result for replacing the search string. Single and double quotes are escaped by backslashes in substituted backreferences. <1> one of the less-than-obvious finds in the php manual <7> g'nite. <3> emerge: man strtod <2> thanks a lot -- works now <3> damn, digg's interface s ****ing ***y; makes slashdot look like the piece of **** that it is <4> pizza_milkshake: school stuffs, they dont allow us to use libraries :( <4> but thanks. <3> rgr <3> where's your code? <6> in my badonkadonk <4> pizza_milkshake: you talking to me? :o <4> or someone else <3> YUP <3> you, buddy. <4> oh.. <4> you wanted to see the code? o_O <3> sure, why not <4> http://pastebin.com/630275 <4> they might be cleaner way, i dono. the first thing that came to my mind was that, heh <3> emerge: i ***ume you want &&, not & at the end <3> though i suppose & also works... <3> it could be cleaner, but it's not bad <4> yeah && and & <4> since its only 1 and 0 <4> i think it doesnt matter if i do bit-and <4> :P <8> http://abcnews.go.com/Technology/story?id=1777423&page=1 <3> emerge: premature optimization? <1> when is the dst switch? <4> pizza_milkshake: define that please :o <8> april 2 <1> and that's ahead one hour, right? <1> midnight turns into 1am <4> we're turning back :o <3> emerge: premature optimization is when you spend time doing something non-intuitive to try to squeeze performance out of something which is not known to be slow <1> turning back? <1> it's spring ahead, isn't it? <1> heh. so that means one less hour of sleep <4> oh ok. <4> we're goin autumn. <4> we get an hour extra over the weekend <1> huh? <1> oh <4> Australia -_- <1> crazy aussie <4> heh <4> we're the future, so stfu already <4> :p <1> dst is so retarded <4> indeed <8> I think it's outlived its usefulness <9> what would i valid image resource look like to imagesx() ?
<8> ho-*** chuck. <9> /dir/img.gif <1> heh. it sure has <1> since the invention of ALARM CLOCKS <1> i mean, it's only purpose is so that farmers can get an extra hour of light <8> nah it was started to save fuel <1> which makes no sense <4> Melbourne makes delayed the switch of DSL because of Commonwealth games <1> save fuel? <8> hold on <1> oh <1> heating/lighting <8> yeah <8> http://www.wildcrazy.com/fact11DST.htm <1> 50 lives were saved. <1> big ****ing deal. <1> that's probably just the standard deviation for vehicular deaths <8> Statistics never lie. <8> </sarcasm> <1> no, but the people who write about them do! <8> When ice cream sales go up, so do drownings <4> okay im going home, see you guys soon :) <1> Robdgreat: wouldn't that be the opposite? <1> oh wait <1> i read that backwards <8> they MUST be linked. <8> a diabolical scheme of the ice cream industry <1> hehe. i just read a book on innumeracy and it was filled with stuff like that <1> statistics skewing <8> fun stuff <9> do i have to call fileopen() before i can use imagesx() etc? <9> er <9> fopen <9> http://www.phpriot.com/2939 <1> @getimagesize! <0> (PHP 3, PHP 4, PHP 5) <0> array getimagesize ( string filename [, array &imageinfo] ) <0> Get the size of an image <0> http://www.php.net/getimagesize <1> if you can't figure imagesx out from looking at the the php manual page for it, i'd give up on php <9> oh my <9> you're right. <9> splinter says, "Hahahahahah, you made another funny" <6> HUHUHU <1> why does calvin klein only have a website for their underwear <10> dum di di dum <11> hi everyone. <11> This is my first time ever on IRC and let alone on this forum. <11> :) <11> anybody here ? <6> Hi <6> It's quite late, so you've missed the active time, most people are idle. Don't give up so easily on IRC though. <6> Are you looking for ***istance, or just come to hang out, or lurk? :) <1> or cyber <6> evulish is our gay cybering bot. <6> He'll do anything for 3 credits. <11> :) <11> i am actually lookign for some ***istance. <6> ok, a tip for you: Ask your question right off the bat, rather than waiting for someone to acknowledge your existance. We get tons of people coming in and out and lurking. :) Read the topic carefully and use The Pastebin<tm>. <11> sure .. thanks. <6> =) <11> i have some ASP code that i want to be converted to PHP <1> it'd be fun to patent a pastebin <6> yeah <11> i have tried a few online tools , just dont work. <6> I wonder who invented the first pastebin <11> here is a little sample. <11> :-) <6> maxhumor: overall you'll find that it'll have to be manually translated <11> yes, i figured. <11> with my litle expertise in PHP i feel handicapped. <11> :-( <6> It's okay, evulish is mentally handicapped, so we're used to handicapped people.
Return to
#php or Go to some related
logs:
#india #worldchat #allnitecafe #chat-world gallery.kissmoney. bhabhi love sexpolipe #allnitecafe #allnitecafe boldinho english
|
|