Unable to use array from external file

I’ve added a file inside App/icons/icons.php which has an array
<?php
$skills_icon = array(
‘one’,
‘two’,
‘three’
);

and in my views icons.blade.php I want to get values from it {{ var_dump($skills_icon)}}

But I’m having an error Notice** : Undefined variable: skills_icon in C:\laragon\www\profile-theme\wp-content\uploads\cache\068ba81134128b24e63ed54672570ebca489db3b.php on line **13
NULL

I have added the icons.php file in functions.php.

Am I missing something?

This topic was automatically closed after 42 days. New replies are no longer allowed.