Vue Js Get Index Of Array Php Functions And Their Types