SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    [php]
    I experienced it myself, quite a big difference!
    Try to avoid split if you don't need the reg. expr in delimiter/separator
    Don't know if any other functions in php have the pair like this (do the same thing, but different in purpose or performance)

    Oh, one example in another thread: echo/printf/print
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  2. #2
    SitePoint Member
    Join Date
    Nov 2000
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    str_replace vs. ereg
    huge performance difference if you don't need the specific properties of ereg
    Sincerely,
    Bogdan Arsenie
    http://www.electrorev.com

  3. #3
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, thank you so much!
    Bring my scripts to the next level
    Also check out the comparisons at http://www.php.net
    Are there any more functions related to this?
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy


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
  •