Title: A little php help
Last modified: August 19, 2016

---

# A little php help

 *  Resolved [ehab](https://wordpress.org/support/users/ehab/)
 * (@ehab)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/a-little-php-help/)
 * I am trying to replace the READ MORE text in my theme with
 * `<?php the_content('<img src="/images/readmore.gif" alt="read more" title="Read
   more..." />'); ?>`
 * I would like to use random images there :D, but I am confused how to put the 
   tag
 * I tried
 * `<?php the_content('<img src="/images/readmore_'rand(1,4);'.gif" alt="read more"
   title="Read more..." />'); ?> '); ?>`
 * But I get ..
 * _Parse error: syntax error, unexpected T\_STRING in ***/index.php on line 22_
 * Any help 😀 ?

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

 *  [haochi](https://wordpress.org/support/users/haochi/)
 * (@haochi)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/a-little-php-help/#post-761939)
 * `<?php the_content('<img src="/images/readmore_'.rand(1,4).'.gif" alt="read more"
   title="Read more..." />'); ?>`
 *  Thread Starter [ehab](https://wordpress.org/support/users/ehab/)
 * (@ehab)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/a-little-php-help/#post-762234)
 * Thank you so much 🙂
 * I now understand how to join and break statements 🙂

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

The topic ‘A little php help’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [ehab](https://wordpress.org/support/users/ehab/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/a-little-php-help/#post-762234)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
