Advanced Search

Results 1 to 2 of 2

Thread: delete a piece of text from a file...

  1. #1
    Join Date
    Dec 2006
    Posts
    74
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default delete a piece of text from a file...

    how do you make a script that will delete a piece of text from a file eg:

    text.html contains "hello my name is...";

    the script will remove "hello" from text.html?
    Last edited by lankinator; 08-04-2007 at 02:02 PM.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    11,832
    Thanks
    233
    Thanked 659 Times in 647 Posts

    Default

    str_replace('hello','',$string);
    Daniel - Freelance Web Design | <?php?> | <html>| Deutsch | italiano | español | português | català | un peu de français | Ninasoma Kiswahili | 日本語の学生でした。| درست العربية

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •