Interviewer And Interviewee Guide

Junior Developer PHP Interview Question:

What is faster in PHP?

Submitted by: Administrator
1- Combining two variables as follows:

$variable1 = ‘Hello ‘;

$variable2 = ‘World';

$variable3 = $variable1.$variable2;

Or

2- $variable3 = “$variable1$variable2”;

$variable3 will contain “Hello World”. The first code is faster than the second code especially for large large sets of data.
Submitted by:

Read Online Junior Developer PHP Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.