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 6571251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:51:30+00:00 2026-05-25T14:51:30+00:00

I am having problem with my PHP coding lately. I used to code like

  • 0

I am having problem with my PHP coding lately. I used to code like this;

<?php
$value = "ipsum";
echo "{$value} lorem";
?>

Output : ipsum lorem

I don’t know what happened but like 10 days / 2 weeks ago the same coding gives me following output;

{$value} lorem

Since this happened, I also can’t use <? ?> tags, I have to use <?php ?> tags. I know tags are related to PHP.ini but I have no idea what to edit in PHP.ini to solve my output (echo / print) problem.

EDIT :

My problem is not php short tags. I just meant those 2 problems occurred together so I wanted to write it down. Considering this is the first time I heard and / or experienced such problem, I just wanted to write everything down.

EDIT 2:

My problem is solved after uninstalling / re-installing (2 times, first one didn’t help) xampp.
I’m accepting Jeremy Banks answer as a solution. Please note that my problem’s solution wasn’t his answer but I had to chose an answer since there wasn’t a possibility to close the question with a real reason.

  • 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-25T14:51:30+00:00Added an answer on May 25, 2026 at 2:51 pm

    By using quoting your strings with ' you’re not allowing $variables to be interpolated into it. You need to quote with " for that to work.

    <?php
    $value = 'ipsum';
    echo "{$value} lorem";
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem with some code that used to work in PHP 4.X
I'm having a problem with a query prepared in PHP with PDO. The code:
I am having a problem with PHP at the moment, I am getting this
Having problem with this bit of code qith jQuery. it should pick the values
I'm having a problem with PHP PCRE, and I'm used to POSIX, so I'm
am having problem in Saving some data in my Java code. I have like
I have user table having fields gender and first name like this.. The value
I'm having a problem with PHP Exceptions. Even if I try to execute this
I am having one problem with the PHP json_encode function. It encodes numbers as
I'm having an extremely weird problem with a PHP script of mine. I'm uploading

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.