Search found 7 matches
- Tue Nov 17, 2009 1:27 am
- Forum: PHP - Code
- Topic: echo strftime('%T') why the reference does't work?
- Replies: 2
- Views: 116
- Tue Oct 27, 2009 9:53 pm
- Forum: PHP - Code
- Topic: echo strftime('%T') why the reference does't work?
- Replies: 2
- Views: 116
echo strftime('%T') why the reference does't work?
the result is emptiy!
in normal ,it should return the time now!
in normal ,it should return the time now!
- Tue Oct 27, 2009 3:17 am
- Forum: PHP - Code
- Topic: About an iframe in a div
- Replies: 1
- Views: 93
Re: About an iframe in a div
I have knwn the cause,and solve it!
I need two div to reveal in different sizes!
I need two div to reveal in different sizes!
- Mon Oct 26, 2009 11:25 pm
- Forum: PHP - Code
- Topic: About an iframe in a div
- Replies: 1
- Views: 93
About an iframe in a div
After I have finish an iframe's reveal in a div.I should make it in the middle of the div,but I don't know the method?Add a table,I failed! In fact ,I could not make the iframe's reveal seprates from that div,they reveal in the same size.How to change their size relatively? like this <div id="d...
- Mon Oct 26, 2009 6:15 am
- Forum: PHP - Code
- Topic: the problem with str_replace
- Replies: 3
- Views: 57
- Mon Oct 26, 2009 2:04 am
- Forum: PHP - Code
- Topic: the problem with str_replace
- Replies: 3
- Views: 57
Re: the problem with str_replace
I know the problem now,the $nn is the return value,not the control reference,my god.
- Mon Oct 26, 2009 2:00 am
- Forum: PHP - Code
- Topic: the problem with str_replace
- Replies: 3
- Views: 57
the problem with str_replace
$str="hahahahahahahahahahahahahaha";
$nn=1;
$str=str_replace('ha','MyGod',$str,$nn);
echo $str;
the result is MyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGod
Why $nn has no effect?the version of my php?

$nn=1;
$str=str_replace('ha','MyGod',$str,$nn);
echo $str;
the result is MyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGodMyGod
Why $nn has no effect?the version of my php?