Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7009181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:49:48+00:00 2026-05-27T21:49:48+00:00

My script extract span with it’s attributes. I want to replace span with attributes

  • 0

My script extract span with it’s attributes. I want to replace span with attributes with something else. I am using following piece of code, maybe cause of special characters it doesn’t work.

    $tag=strtolower(str_replace("'<<span_id="ctl00_cphpagecontant_label6"><b>'","B",$tag));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:49:49+00:00Added an answer on May 27, 2026 at 9:49 pm

    Nesting quotes, ya’ need to escape ’em mate!

    If you have a string wrapped in "" and would like this string to contain a literal " you will need some sort of method to say that "hey, I want this character here – but it’s not the end of the string", that’s where escaping comes in.

    By prepending your character with a backslash \ you tell the PHP interpreter just that; this character is a part of the string, it’s not used to denote the end of it.

    $tag=strtolower (
      str_replace ("'<<span_id=\"ctl00_cphpagecontant_label6\"><b>'","B",$tag)
    );
    

    Note: Does the string you’d like to replace start and end with '? Otherwise those characters should be removed from the string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried using a example file using PHPExcel script to extract data from
Using the zipfile module I have created a script to extract my archived files,
I'm writing a script where I extract command line arguments using getopt, qualify the
I'm trying to adapt a code to extract information from wunderground. However the script
I wrote a small script to extract data from Oracle using Takusen: {-# LANGUAGE
I want to write a script to extract , configure , make and make
I would like to extract the subdirectory name using a bash script from a
I want to extract a 7-Zip archive in a Python script. It works fine
I'm writing a python script to extract data out of our 2GB Apache access
I'm trying to write a log parsing script to extract failed events. I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.