L
L
Lavrov952018-03-07 12:47:10
PHP
Lavrov95, 2018-03-07 12:47:10

How to make 'opportunities' have an array?

$opportunies = [
  [0]=>
  string(12) "Postdoctoral"
  [1]=>
  string(8) "Research"
]
 $announcementsArray['data'][] = [
                'title' => $title,
                'opportunities' => $opportunities,
                'study_levels' => $studyLevel,
            ];

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-03-07
@AK-VoronM

It's probably worth renaming the array variable $opportuniesto $opportunities
Well or assign it $opportuniesinstead $opportunities
=))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question