Do you know Why doesn't the following code print the newline properly?
Submitted by: Administrator<?php
$str = ‘Hello, there.nHow are you?nThanks for visiting Us’;
print $str;
?>
Because inside the single quotes the n character is not interpreted as newline, just as a sequence of two characters - and n.
Submitted by: Administrator
$str = ‘Hello, there.nHow are you?nThanks for visiting Us’;
print $str;
?>
Because inside the single quotes the n character is not interpreted as newline, just as a sequence of two characters - and n.
Submitted by: Administrator
Read Online WordPress Job Interview Questions And Answers
Top WordPress Questions
☺ | What is WordPress? |
☺ | What is the ternary conditional operator in PHP? |
☺ | Will I have the ability to update my own content? |
☺ | Are there any limitations to a WordPress web site? |
☺ | Tell me Would you initialize your strings with single quotes or double quotes? |
Top CMS (Content Management System) Categories
☺ | WordPress Interview Questions. |
☺ | CMS Interview Questions. |
☺ | Joomla Interview Questions. |
☺ | Drupal Interview Questions. |
☺ | Moodle Interview Questions. |