A
A
Alexey selftrips.ru2018-01-29 06:38:02
PHP
Alexey selftrips.ru, 2018-01-29 06:38:02

What is the error?

get_post_meta( $post_id, TRY,1)
In Vodpress I get a meta field called TRY
php starts swearing at this why?

Parse error: syntax error, unexpected 'TRY' (T_TRY) in

(there are no problems with other names ) How can I solve the problem without changing the field name? get_post_meta( $post_id, MY_TRY,1)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lone Ice, 2018-01-29
@daemonhk

Probably because the word try is reserved and is used by the language itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question