Tell me do you know why doesn't the following code print the newline properly?
Submitted by: Muhammad<?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: Muhammad
$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: Muhammad
Read Online WordPress Themes Developer Job Interview Questions And Answers
Top WordPress Themes Developer Questions
| ☺ | Please explain why widget does not show up in the sidebar? |
| ☺ | Tell me in what case you don’t see plugin menu? |
| ☺ | Tell me can WordPress use cookies? |
| ☺ | Do you know what is the default prefix of wordpress tables? |
| ☺ | Tell me the ternary conditional operator in PHP language? |
Top Web Developer Categories
| ☺ | Bootstrap Interview Questions. |
| ☺ | Front End Web Developer Interview Questions. |
| ☺ | Typography Interview Questions. |
| ☺ | Laravel PHP Developer Interview Questions. |
| ☺ | Junior Developer PHP Interview Questions. |
