public function getQueueArn($queueUrl)
    {
        $queueArn = strtr($queueUrl, array(
            'http://'        => 'arn:aws:',
            'https://'       => 'arn:aws:',
            '.amazonaws.com' => '',
            '/'              => ':',
            '.'              => ':',
        ));

        // Cope with SQS' .fifo / :fifo arn inconsistency
        if (substr($queueArn, -5) === ':fifo') {
            $queueArn = substr_replace($queueArn, '.fifo', -5);
        }
        return $queueArn;
    }
public function getQueueArn($queueUrl)
    {
        $queueArn = strtr($queueUrl, array(
            'http://'        => 'arn:aws:',
            'https://'       => 'arn:aws:',
            '.amazonaws.com' => '',
            '/'              => ':',
            '.'              => ':',
        ));

        // Cope with SQS' .fifo / :fifo arn inconsistency
        if (substr($queueArn, -5) === ':fifo') {
            $queueArn = substr_replace($queueArn, '.fifo', -5);
        }
        return $queueArn;
    }
public function getQueueArn ( $ queueUrl ) { $ queueArn = strtr ( $ queueUrl , array ( 'http://' => 'arn:aws:' , 'https://' => 'arn:aws:' , '.amazonaws.com' => '' , '/' => ':' , '.' => ':' , ) ) ; // Cope with SQS' .fifo / :fifo arn inconsistency if ( substr ( $ queueArn , - 5 ) === ':fifo' ) { $ queueArn = substr_replace ( $ queueArn , '.fifo' , - 5 ) ; } return $ queueArn ; }
Converts a queue URL into a queue ARN.

@param string $queueUrl The queue URL to perform the action on.
Retrieved when the queue is first created.

@return string An ARN representation of the queue URL.
Converts a queue URL into a queue ARN .