J'ai ce type de tableau, je veux covert quelques éléments pour une virgule separèesconvertir élément de tableau dans un tableau séparés par des virgules en PHP
Array
(
[0] => Array
(
[tution_provider] => sd
[app_subject_name] => KE2-Management Accounting Information
[exam_activity] => 734
[icasl_no] => 1746828
[app_subject_id] => 1013
[exam_session] => 000091
[id] => 724
)
[1] => Array
(
[tution_provider] => sdfsdf
[app_subject_name] => KE3B-Fundamentals of Law
[exam_activity] => 734
[icasl_no] => 1746828
[app_subject_id] => 1016
[exam_session] => 000091
[id] => 725
)
[2] => Array
(
[tution_provider] => sdfsdfsdf
[app_subject_name] => KE4-Processes, Assurance & Ethics
[exam_activity] => 734
[icasl_no] => 1746828
[app_subject_id] => 1017
[exam_session] => 000091
[id] => 726
)
)
Et je veux sortir mettre de la
app_subject_id
comme un tableau séparées par des virgules. Comment puis-je faire ceci?
tel est le hors mis que je veux
Array ([0] => 1013 [1] => 1016 [2] => 1017 [3] => 1013 [4] => 1016 [5 ] => 1017)
Veuillez mettre à jour votre sortie attendue. –
hmm vous voulez dire le tableau d'index au lieu du tableau associatif? –
Copie possible de [Modifier un tableau associatif dans un tableau indexé/obtenir un Zend \ _Table \ _Row \ _Abstract comme non associative] (https://stackoverflow.com/questions/1065131/change-an-associative-array-into -an-indexed-array-get-an-zend-table-row-abstra) –