Backtick call appends extra space
- From: Martin <loveslave@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 31 Mar 2008 10:35:51 -0700 (PDT)
Look at the following code:
<?php
$year = `date +
%Y`;
echo "(".$year.")";
?>
The output is
(2008 )
There is an extra space after the "2008". Why is that, and what can I
do about it?
.
- Follow-Ups:
- Re: Backtick call appends extra space
- From: Jeremy
- Re: Backtick call appends extra space
- Prev by Date: Re: Extract text and images from pdf file
- Next by Date: zend studio trial version cd
- Previous by thread: Is there a difference between Zend Extension and PHP Extensions
- Next by thread: Re: Backtick call appends extra space
- Index(es):