我是一名PHP菜鸟,他被抛出以下错误:
解析错误:语法错误,意外'否则'第33行/home/stripeparse/example.com/create_customer.php中的(T_ELSE)
<?php
require_once('/Stripe/lib/Stripe.php');
Stripe::setApiKey("APIKEY");
try
{
Stripe_Customer::create( array(
"description" => $mobile,
"email" => $email
));
$SUCCESS = 'SUCCESS';
$response = json_encode(array('result'=>'SUCCESS','customerID'=>$customer->id));
array_push($jsonarray, $response);
}
catch (Exception $e)
{
$response = $e -> getMessage();
array_push($jsonarray,$response);
}
else
{
$response = json_encode(array('result' => 'DATA = FALSE'))
}
print_r($response);
?>
我在这里做错了什么?
提前感谢您的帮助。