Hi - I've consumed some data from a web service and I have it in an object. I'm used to iterating arrays, but I'm having trouble seeing how this works for objects. Here is what the object look like...
First time writing this type of script. I thought I'd share it and see if anyone has suggestions for improvement (it works). Hopefully the comments are clear enough. Thanks!
Hi - I cobbled together this script and made it work in a test page, but now that I'm applying it on my actual page I'm having trouble. Probably some beginner mistakes in here:
For anyone one interested, here's how I got it to work (since time stamp in seconds, I converted all the variables into seconds and that removed any problems)
Hi - This function was supposed to calculate the next delivery date based on a start date and by adding 2, 4, 6 or 8 week intervals until past "today". I've done something wrong because it seems to...
I figured out one problem and went on to another one... So the <br /> tags got reduced to <br/> when loaded to the variable. Now I can find them. My next odd thing is I search for a string ending in...
Here's with preg_replace(). I also tried \n btw. As is here, it works. But if I add a second <br /> (which is on a separate line in the html), no luck. My $remotecontent variable contains a section...
Hi I'm using str_replace() to remove some text and html code from a string. How do I match a line break in the html code? It literally looks like this in the html:
Hi - this is my first post. I've got a question about a menu I'm working here http://intuito.biz/couples/ (Apologies for the font, which is waiting on customer input to fix).