0

I have this array {$man_data} which is structured like

10 > 'Text 8'
14 > 'Text 12'
24 > 'Text 13'

and {$entry.client_id} returns an integer (10, 14 or 24). I can't figure out how to call $man_data with key $entry.client_id?

I tried: {$man_data.{$entry.client_id}}, {$man_data.{entry.client_id}}, {$man_data.$entry.client_id}... any suggestions?

1 Answer 1

4

Have you tried:

{$man_data[$entry.client_id]}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.