I have installed aws-php-sdk via composer into my project, I am using the php version 7.4
I tried below code into my project
I am getting the error syntax error, unexpected 'use' (T_USE) [file] =
Please help me to solve this.
I have installed aws-php-sdk via composer into my project, I am using the php version 7.4
I tried below code into my project
I am getting the error syntax error, unexpected 'use' (T_USE) [file] =
Please help me to solve this.
This probably means you're putting a use statement where it's not syntactically allowed, for instance inside of a method. If you're using a trait, try moving it to the top of the class just after the opening bracket. If you're using a class, then try placing it just before the class declaration.
https://www.php.net/manual/en/language.namespaces.importing.php