public function createTopic($name) {
		if(empty($name)) {
			throw new InvalidArgumentException('Must supply a Name to create topic');
		}

		$resultXml = $this->_request('CreateTopic', array('Name' => $name));

		return strval($resultXml->CreateTopicResult->TopicArn);
	}
public function createTopic($name) {
		if(empty($name)) {
			throw new InvalidArgumentException('Must supply a Name to create topic');
		}

		$resultXml = $this->_request('CreateTopic', array('Name' => $name));

		return strval($resultXml->CreateTopicResult->TopicArn);
	}
public function createTopic ( $ name ) { if ( empty ( $ name ) ) { throw new InvalidArgumentException ( 'Must supply a Name to create topic' ) ; } $ resultXml = $ this -> _request ( 'CreateTopic' , array ( 'Name' => $ name ) ) ; return strval ( $ resultXml -> CreateTopicResult -> TopicArn ) ; }
Create an SNS topic

@link http://docs.amazonwebservices.com/sns/latest/api/API_CreateTopic.html
@param string $name
@return string - TopicARN
@throws InvalidArgumentException
Create an SNS topic