PHP Whitespace Insensitive
In this chapter we will study about PHP whitespace Insensitive and Case Sensitive but before we go ahead first of all we should know that what whitespace is?Whitespace is a character which is ‘Typed’ but it remains invisible on the screen. Typically it includes space, tabs, line changes etc.
PHP is whitespace insensitive language that ignores whitespaces. This means many whitespace characters are same to one whitespace character. Check out below example the try on your text editor.
Example - 1
<?php
$x = 'https://www.progrramers. com '; //Whitespace is invisible on web page
$y = 'https://www.progrramers. com'; //both will produce same result
echo '<a href = "https://www.progrramers.com">' .$x. '</a> <br />';
echo '<a href = "https://www.progrramers.com">' .$y. '</a> <br />';
?>
PHP Case sensitive
If you ever heard that PHP is case sensitive than it is true PHP is case sensitive language but there is one condition here. In PHP, all keywords like if, else, while, echo, etc., classes, functions, and user-defined functions are NOT case-sensitive. You can see yourself in below exampleExample - 2
<?php
$CAR = 'Skoda';
echo $CAR;
echo $car;
echo $Car;
?>
All the variables in PHP are case sensitive. In above example you can see that $Car, $car and $CAR are not similar. We will study about variables in next chapter.
Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog.
ReplyDeletedata science course in malaysia
tableau training in malaysia
data analytics course malaysia
360DigiTMG
Great Article Artificial Intelligence Projects
DeleteProject Center in Chennai
JavaScript Training in Chennai
JavaScript Training in Chennai Project Centers in Chennai
Hey, thanks for this great article I really like this post and I love your blog and also Check Python course Training in 360DIGITMG. Python Training certification program provides an overview of how Python and R programming can be employed in Data Mining of structured (RDBMS) and unstructured (Big Data) data. Comprehend the concepts of Data Preparation, Data Cleansing and Exploratory Data Analysis. Perform Text Mining to enable Customer Sentiment Analysis. Learn Machine learning and developing Machine Learning Algorithms for predictive modeling using Regression Analysis. Assimilate various black-box techniques like Neural Networks, SVM and present your findings with attractive Data Visualization techniques.
ReplyDelete360Digitmg Python Training institute
This is really very nice post you shared, i like the post, thanks for sharing..
ReplyDelete360Digitmg marketing analytics in hyderabad
I found your this post while searching for information about blog-related research ... It's a good post .. keep posting and updating information. buy real instagram likes monthly
ReplyDeleteAwesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
ReplyDeletedata scientist training in malaysia