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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:38:35+00:00 2026-06-07T15:38:35+00:00

My problem is the following: To keep order in my scripts, I always put

  • 0

My problem is the following: To keep order in my scripts, I always put lots of spaces in my if-statements, like this:

if( ! isset( $_GET['user'] ) || ! isset( $_GET['user'] ) )
   ...

From time to time, though everything seems correct, this produces errors like “Unexpected T_STRING…” etc. Then I change the line to:

if(!isset($_GET['user'])||!isset($_GET['user']))
   ...

save the file, re-insert the spaces, save the file again and everything works fine. Any ideas what could cause this? Is it maybe a bug of the PHP parser?

(It’s not specifically this statement, it happens with many such spaces-including statements)

Edit: I just managed to revert the file to when it didn’t work, this is the exact code that produces the error:

if(! isset( $_GET['user'] ) || ! isset( $_GET['parent'] ) )

I also changed every character in sequence, it seems to be the space between || and !.

The error message says:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ')' in ...

You can download the file here: http://geardev.de/test.zip

  • 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-07T15:38:36+00:00Added an answer on June 7, 2026 at 3:38 pm

    This looks like a character-encoding problem. I’m not sure the exact character encoding that you’re using that is causing this, but when you open up the PHP file using a hex editor, the space character you’ve correctly identified as causing this is actually a multi-byte character \xC2 & \xA0. All other space characters are \x20 as they should be:
    enter image description here


    Edit:
    \xC2A0 is the UTF-8 way of encoding U+00A0 (non-breaking space). This could have come from copying-and-pasting from a browser, a PDF, or an advanced text editor, or maybe your keyboard has Shift+Space mapped to NBSP.

    There have been complaints by people of Netbeans inserting NBSP randomly into their code, but I suspect this is due to the user accidentally holding Shift when typing the space.

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

Sidebar

Related Questions

I keep running into the following problem: (System.Console.ReadLine ()).Split [|'('; ')'|] |> Array.filter (fun
Looking for a storage solution for the following problem, preferably with some NoSQL-like speed
I have a problem following from my previous problem . I also have the
Following problem: I want to render a news stream of short messages based on
The following problem happens on both Safari and Chrome, so probably a WebKit issue.
I have following problem: I have to make a ASP.NET Webapplication with a two-row
Given the following problem , I'd appreciate for any corrections since I have no
The problem is following: I want to automate the way my emacs starts. It
I have following problem: I have built a tabbar application with 4 tabs. I
I have following problem, Code: String a=Yeahh, I have no a idea what's happening

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.