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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -