Solved

help me go from perl to php

Posted on 2002-04-01
3
161 Views
Last Modified: 2006-11-17
How do i do this in php

$opendate=~s/INSERT DATE HERE/$replaceString/g;

thanks kieran
0
Comment
Question by:kplonk
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
andriv earned 20 total points
ID: 6910892
$opendate = str_replace("replace these","replace with",$opendate);
0
 

Author Comment

by:kplonk
ID: 6911011
just the job thanks
0
 
LVL 5

Expert Comment

by:andriv
ID: 6911049
Glad I can help.

Andy
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Undefined variable problem 5 32
PHP website on Linux - server DNS address could not be found. 18 78
Unwanted output from my query 5 40
xml with php question 5 30
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question