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

  • Home
  • SEARCH
  • 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 3285360
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:15:30+00:00 2026-05-17T20:15:30+00:00

Seems like a simple question, but I haven’t been able to find a solid

  • 0

Seems like a simple question, but I haven’t been able to find a solid answer anywhere. I’m outputting a ton of HTML and find escaping “s to be error prone and hard to read, but I also want to have my HTML formatted nicely.

Want something like this (though I know this won’t worK):

echo '<div id="test">\n';
echo '\t<div id="test-sub">\n';
echo '\t</div>\n';
echo '</div>\n';

What is one to do?

Thanks.

  • 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-17T20:15:31+00:00Added an answer on May 17, 2026 at 8:15 pm

    did you look on HEREDOC

    Heredoc text behaves just like a
    double-quoted string, without the
    double quotes. This means that quotes
    in a heredoc do not need to be escaped

    example of advantage here : http://www.shat.net/php/notes/heredoc.php

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

Sidebar

Related Questions

This seems like a simple question, but I haven't been able to find the
Seems like a simple enough question but I can't seem to find the answer.
This seems like a really simple question but I haven't seen it answered anywhere.
This seems like a simple question, but I can't find it with the Stack
This seems like such a simple question, but I have been trying for an
It seems like such a simple thing, but I can't find any obvious solutions...
A simple question, yet I wasn't able to find an answer in google. How
this seems like a really simple Question...but behold :) Geek name:string Laser geek_id:integer, power:integer
This seems like such a simple question, but I'm having such difficulty with it.
I've looked all over and haven't been able to find a clear answer to

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.