Jump to content

Weird script output


phpeter

Recommended Posts

Here's my code:

 

$file_string .= ($feed_id == 1 ? '<a><<</a>' : '<a href="#' . $feed_id-1 . '"><<</a>');
$file_string .= ($article_id == 1 ? '<a><</a>' : '<a href="#' . $article_id-1 . '"><</a>');
$file_string .= ($article_id == count($xml->channel->item) ? '<a>></a>' : '<a href="#' . $article_id-1 . '">></a>');
$file_string .= ($feed_id == count($xml->channel->item) ? '<a>>></a>' : '<a href="#' . $feed_id-1 . '">>></a>');

 

Why is it showing up as "<<<Engadget• -1">>-1">>>"?

 

I was thinking it was something wrong with the "$var-1" part.

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/215393-weird-script-output/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.