wordpress - I am getting unexpected 'use' (T_USE) while using php-library2-master for push notification? -
i getting unexpected 'use' (t_use) while using php-library2-master push notification. using in functions.php in wordpress. below: parse error: syntax error, unexpected 'use' (t_use) in d:\xampp\htdocs\foodgainz\wp-content\themes\sexyfood-child-theme\functions.php on line 918
please me. thanks
require_once 'vendor/autoload.php'; use urbanairship\airship; use urbanairship\ualog; use urbanairship\push p; use monolog\logger; use monolog\handler\streamhandler; ualog::setloghandlers(array(new streamhandler("php://stdout", logger::info))); $airship = new airship("pllo94dyt0qzoywb4m61jg", "nmcbitberugxcbuwecvwea"); $response = $airship->push() ->setaudience(p\all) ->setnotification(p\notification("hello php team 24 welcome")) ->setdevicetypes("all") ->send();
Comments
Post a Comment