public function put($pri, $delay, $ttr, $data) {
		$this->_write(sprintf("put %d %d %d %d\r\n%s", $pri, $delay, $ttr, strlen($data), $data));
		$status = strtok($this->_read(), ' ');

		switch ($status) {
			case 'INSERTED':
			case 'BURIED':
				return (integer) strtok(' '); // job id
			case 'EXPECTED_CRLF':
			case 'JOB_TOO_BIG':
			default:
				$this->_error($status);
				return false;
		}
	}
public function put($pri, $delay, $ttr, $data) {
		$this->_write(sprintf("put %d %d %d %d\r\n%s", $pri, $delay, $ttr, strlen($data), $data));
		$status = strtok($this->_read(), ' ');

		switch ($status) {
			case 'INSERTED':
			case 'BURIED':
				return (integer) strtok(' '); // job id
			case 'EXPECTED_CRLF':
			case 'JOB_TOO_BIG':
			default:
				$this->_error($status);
				return false;
		}
	}
public function put ( $ pri , $ delay , $ ttr , $ data ) { $ this -> _write ( sprintf ( "put %d %d %d %d\r\n%s" , $ pri , $ delay , $ ttr , strlen ( $ data ) , $ data ) ) ; $ status = strtok ( $ this -> _read ( ) , ' ' ) ; switch ( $ status ) { case 'INSERTED' : case 'BURIED' : return ( integer ) strtok ( ' ' ) ; // job id case 'EXPECTED_CRLF' : case 'JOB_TOO_BIG' : default : $ this -> _error ( $ status ) ; return false ; } }
The `put` command is for any process that wants to insert a job into the queue.

@param integer $pri Jobs with smaller priority values will be scheduled
before jobs with larger priorities. The most urgent priority is
0; the least urgent priority is 4294967295.
@param integer $delay Seconds to wait before putting the job in the
ready queue.  The job will be in the "delayed" state during this time.
@param integer $ttr Time to run - Number of seconds to allow a worker to
run this job.  The minimum ttr is 1.
@param string $data The job body.
@return integer|boolean `false` on error otherwise an integer indicating
the job id.
The put command is for any process that wants to insert a job into the queue .