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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:21:05+00:00 2026-06-14T04:21:05+00:00

I am a newbie on php writing. In the my first trying, I get

  • 0

I am a newbie on php writing. In the my first trying, I get a problem on input a html tag to php.

This code output an error:

<?php
$a="Begin";
$b=12;
echo $b . " " . $a . " " . "This is php file <br/>";
echo strlen($a);
echo strpos($a,"in") . "<br/>";
echo addcslashes($a,"i")";
?>

this is the error message I get:

Parse error: syntax error, unexpected '"', expecting ',' or ';' in /home/specials/public_html/bextool.com/1.php on line 7

Is there any body who can explain about it?

  • 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-06-14T04:21:07+00:00Added an answer on June 14, 2026 at 4:21 am

    This line:

    echo addcslashes($a,"i")";
    

    should be

    echo addcslashes($a,"i");
    

    You can sometimes tell in the editor that the colors are different when you’re missing a " or something. In this case, you can see the last semicolon is not black, like the other ones – a sign of trouble.

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

Sidebar

Related Questions

I'm a PHP newbie, so I have a minor problem functions. I have this
I'm a fairly newbie php coder, got this php code in a tutorial to
I'm completely newbie in PHP. I have tried example code from this site .
I'm a newbie to PHP/SQL and I am trying to use a variable within
I'm a newbie in php and Wordpress. I'm trying to create a script that
I'm a newbie php guy. I have 1 string output from Drupal's date module
PHP Redirect with Post Data Hi, I am a newbie PHP programmer and trying
I am a newbie at PHP; today I see some code as the following
I am a newbie in Php and this might be a quite basic question.
PHP newbie here, I can't understand what I'm doing wrong here. I'm trying 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.