G
G
Grisha Nikolsky2015-10-05 18:02:24
PHP
Grisha Nikolsky, 2015-10-05 18:02:24

What does the ID in this line mean?

Hello, I analyzed the script, where this line of code is present:
$teams_stored_meta = get_post_meta($post->ID);
What does this sign mean ->
And also, what does ID mean?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Inchin ☢, 2015-10-05
@VoxelGod

Contains $posta reference to some object . - the ID
$post->ID property of this very object.

V
Vit, 2015-10-05
@fornit1917

The -> sign is used to refer to the fields and methods of an object.
ID - field name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question