adspace


For printing out strings, there are echo, print and printf.
Explain the differences.

Answer Posted / hardik

echo is a language construct(You can see we don't use
paranthesis for echo).echo does not return any value. print
is also a language construct but it returns an integer
value. printf is a function..... echo is considered fast
than print and printf

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain me is it possible to destroy a cookie?

1035


What is the difference between htmlentities() and htmlspecialchars()?

1100


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1082


Write a program using while loop?

1128


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2181


how to detect a mobile device using php

1177


if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer

1997


What does $_files means?

1170


List some features of php that are deprecated in php7?

1026


What is the current stable version of php?

1130


Name and explain five of the PHP error constants?

1043


sort term descripttion form, report and uery

2257


Tell me what kind of things have you done on the social side?

1071


How to create a web form?

1116


What is the current stable version of php? What advance thing in php7?

1100