The method is as follows:
for($ I = 0; $ i< count (arr); $i++)
{
$ arr[$ I]= intval($ arr[$ I]);
}
In this way, character types can be converted into numeric arrays.