Im trying to display a title that depends from a variable,
below is my code:
<?php
$id = $_GET["id"];
$title1 = 'Title 1';
$title2 = 'Title 2';
$title3 = 'Title 3';
?>
Now how to print title2 if id='2',
something like echo $title($id)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Isn’t it better to put your titles into an array ?