as i have array like
$array[selfintro,1]=[selfintroduction]]
$array[experience,2]=[Experience]
$array[education,3] =[Education]
$array[skills,4]= [Skills]
$model[]=[Education,selfintroduction,accomplishment]
i wanna sort "array" using "model" array so it would be like,
$array[education,3] =[Education]
$array[selfintro,1]=[selfintroduction]]
i tried to sort it using this technique,
$sorted=array_intersect($model,$array);`
it do not sort it but when i do it using normal array ahving index value then it give me its result but by using $array its index value in string and int formamt not working for me ?
hopes for your suggestions,
EDITED::
i am populating array from mysqldb and this array contain data like i mentioned above
for loop
{
$array[$templateName.','.$inc]=$V_temptag;
}
after creating this array i sort it using another array that is $model
$sorted=array_intersect($model,$array);
print_r($sorted);