I have an array containing multiple rowsets, including type, title and description….i need to filter the array and display only those rowsets based on type = “education” and type = “experience”.
foreach () { if (type = 'experience') ..do something / else ... do something else} ?
Use
array_filterarray_filter function preserves the keys of the original array. if you dont want this behavior use array_values