Whever i use the print function, the function goes crazy.

For example:

<?php
print "this is all";
?>

Instead of getting:

this is all

I get:

this is all"; ?>

why is that and how to fix it?

Recommended Answers

All 2 Replies

use echo

<?php
echo "this is all";
?>

:))

and BTW, check the quotes!

check the quotes!

It's easy to mistake two single quotes for a double quote. It's hard to spot, but they are not the same.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.