1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

Update php GETTING_STARTED.md

This commit is contained in:
Pratik Gupta 2023-10-19 01:12:31 +05:30 committed by GitHub
parent 88efb36ead
commit a5ea32c237
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ Once your SDK object is set, create any of the Appwrite service objects and choo
```php
$users = new Users($client);
$user = $users->create(ID::unique(), 'email@example.com', '+123456789', 'password', "Walter O'Brien");
$user = $users->create(ID::unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
```
### Full Example
@ -40,7 +40,7 @@ $client
$users = new Users($client);
$user = $users->create(ID::unique(), 'email@example.com', '+123456789', 'password', "Walter O'Brien");
$user = $users->create(ID::unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
```
### Error Handling
@ -49,7 +49,7 @@ The Appwrite PHP SDK raises `AppwriteException` object with `message`, `code` an
```php
$users = new Users($client);
try {
$user = $users->create(ID::unique(), 'email@example.com', '+123456789', 'password', "Walter O'Brien");
$user = $users->create(ID::unique(), "email@example.com", "+123456789", "password", "Walter O'Brien");
} catch(AppwriteException $error) {
echo $error->message;
}