FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Problems modifying date using regex
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Problems modifying date using regex [message #169964 is a reply to message #169963] Sat, 02 October 2010 03:24 Go to previous messageGo to previous message
Rob is currently offline  Rob
Messages: 5
Registered: October 2010
Karma:
Junior Member
> Have you echoed $op and $days to see what they really contain?

Yes, it correctly shows the values. I can also assign them to a
variable and display it correctly, eg:

$str1 = $op . $days . ' day';
$str2 = "$op$days day";
echo $str1 . $str2;

both return "+10 day". If, however, I try to use the result ($date ->
modify ($str1)), nothing happens, the date is unmodified.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array count for each value in turn syntax?
Next Topic: Frst foray into PHP _SELF
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 21:09:19 GMT 2024

Total time taken to generate the page: 0.05462 seconds