Jump to content

Recommended Posts

It depends in what context you are talking about.

 

For example in this case:

HTML goes here

<?php

//php code goes here

?>

HTML goes here

 

The ?'s are used to identify the beginning and end of PHP code

 

In this case

$var = ($x ==1) ? 'a' : 'b';

It is used as part of a tertiary operator.

What language is native to you?

 

 

The question mark has several purposes. The most common are probably the beginning and end tags for PHP inside HTML:

 

<?php

    echo 'Hello world.';

?>

 

 

And passing variables through URLs:

 

http://www.domain.com/news.php?article=5876773

 

 

And others.

HA HA HA  :D

 

You are all also very very funny. You don't understand the ? on php.

 

The exam really that i took is very hard than i expected.

 

I tested this example codes below,

 

<?php
????? $var=10;???
?????
??? echo "Testing!"; ??
?????
?>

 

and the outcome it says nothing really happens, meaning the question mark doesn't affect anything on the code.

 

Now i know it is nothing... HA HA HA clever Test.  ;D

 

 

Thanks anyway, but i think if i dare you to take the exam you guys will also drop it.

 

I"m sure. ha ha ha  ;D

 

 

 

 

You are all also very very funny. You don't understand the ? on php.

 

Are you trying to imply that we're the dense ones here? The question mark serves several roles. Your silly example, which would never be part of actual code, arguably doesn't return the result you say it does. If you aren't going to use question marks correctly, especially to prove this stupid, irrelevant, useless point, who cares?

 

Let me conjure up an imaginary English exam so you can explain the purpose of question marks "on English" and, regarding the exam, "drop it."

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.