Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews IT (Information Technology) Interviews:Assistant ITCISAComputer OperatorContent WriterData EntryData Entry ManagerData Entry OfficerData Entry SpecialistGPRSGPSInformation TechnologyInformation Technology AnalystInformationalIT ConsultantIT ExecutiveIT SupportMMSOnline Store ManagerSocial WorkStructuredTelecommunicationsWordPress Support Officer
Copyright © 2018. All Rights Reserved
WordPress Support Officer Interview Question:
<?php
$str = 'Hello, there.nHow are you?nThanks for visiting Us';
print $str;
?>
Why does not given 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:
$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:
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.