Title: echo problem in php code
Last modified: August 19, 2016

---

# echo problem in php code

 *  Resolved [nair](https://wordpress.org/support/users/nair/)
 * (@nair)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/echo-problem-in-php-code/)
 * Hi,
 * i have a problem with php code… what is wrong in this part of the echo code:
 *     ```
       } elseif ( (in_category('56') ) {
       echo 	'<div id="menuano">
       	    <ul class="fix">
                       <li><a href="get_settings('home')" title="2007">2007</a></li>
       	    </ul>
                </div>';
       ```
   
 * with the code above gives me the error:
 * > **Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in
 * thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Adam Brown](https://wordpress.org/support/users/adamrbrown/)
 * (@adamrbrown)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/echo-problem-in-php-code/#post-699715)
 * Incorrect concatenation. Note the changes around `get_settings()`:
 *     ```
       } elseif ( (in_category('56') ) {
       echo 	'<div id="menuano">
       	    <ul class="fix">
                       <li><a href="' . get_settings('home') . '" title="2007">2007</a></li>
       	    </ul>
                </div>';
       ```
   
 *  Thread Starter [nair](https://wordpress.org/support/users/nair/)
 * (@nair)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/echo-problem-in-php-code/#post-699730)
 * it works! thanks for the reply!
 * cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘echo problem in php code’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [nair](https://wordpress.org/support/users/nair/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/echo-problem-in-php-code/#post-699730)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
