Re: Re: newbie question - php parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is how I'd write this snippet

<?php
if ( 'Home' !== ( $title = the_title('','',FALSE)))
{
    echo '<h2 class="entry-header">',
        $title,
    '</h2>';
}
?>

On Wed, Jul 22, 2009 at 6:31 PM, Lenin <lenin@xxxxxxxxxxxxx> wrote:

> Ted Turner <http://www.brainyquote.com/quotes/authors/t/ted_turner.html>
>  -
> "Sports is like a war without the killing."
>
> 2009/7/23 Shane Hill <shanehill00@xxxxxxxxx>
>
> > 2009/7/22 João Cândido de Souza Neto <joao@xxxxxxxxxxxxxxxxxxx>
> >
> > > You made a mistake in your code:
> > >
> > > <?php the_title(); ?>
> > >
> > > must be:
> > >
> > > <?php echo the_title(); ?>
> >
> >
> > <?= the_title(); ?>
>
>
> Short tag and not recommended as its deprecated now, would be void at PHP
> 6.0
>



-- 
Martin Scotta

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux