Title: Parse error: syntax error, unexpected T_STRING, expecting &#039;)&#039;
Last modified: August 24, 2016

---

# Parse error: syntax error, unexpected T_STRING, expecting ')'

 *  [Mr.Lenz](https://wordpress.org/support/users/mrlenz/)
 * (@mrlenz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-expecting-6/)
 * Please Help :
    Parse error: syntax error, unexpected T_STRING, expecting ‘)’ 
   in /public_html/hjkasdf.php on line 101
 * This is the Code on Line 101-103 :
 *     ```
       $cmd[]=array('number'=>1,'time'=>time(),'args'=>array($k odetavern,0),'cmd'=>'finish_si');
       $i++;
       $cmd[]=array('number'=>1,'time'=>time(),'args'=>array(11,51,0,0),'cmd'=>'sell_stored_dragon');
       ```
   
 * Thanks

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

 *  [michaelbrom](https://wordpress.org/support/users/michaelbrom/)
 * (@michaelbrom)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-expecting-6/#post-5977921)
 * I found another thread with the same error and they mentioned checking the above
   line
 * The solution was to check the line before what is mentioned in the error message(
   in your case, line 168) for errors. In my case, though I had the exact same error
   message referring to a missing “)”, all I needed was to add a comma at the end
   of the previous line. No “)” needed at all.
 * So you may want to check line 100 and see if it is missing a comma or other syntax
 *  Thread Starter [Mr.Lenz](https://wordpress.org/support/users/mrlenz/)
 * (@mrlenz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-expecting-6/#post-5977924)
 * I’m Searching it on Google then i found
 *     ```
       $cmd[]=array('number'=>1,'time'=>time(),'args'=>array($k odetavern,0),'cmd'=>'finish_si');
       $i++;
       $cmd[]=array('number'=>1,'time'=>time(),'args'=>array(11,51,0,0),'cmd'=>'sell_stored_dragon');
       ```
   
 * Must Be :
 *     ```
       $cmd[]=array('number'=>1,'time'=>time(),'args'=>array($kodetavern,0),'cmd'=>'finish_si');
       $i++;
       $cmd[]=array('number'=>1,'time'=>time(),'args'=>array(11,51,0,0),'cmd'=>'sell_stored_dragon');
       ```
   
 * Problem is on $kodetavern 🙂
 * Anyway Thanks 🙂

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

The topic ‘Parse error: syntax error, unexpected T_STRING, expecting ')'’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Mr.Lenz](https://wordpress.org/support/users/mrlenz/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-t_string-expecting-6/#post-5977924)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
