Few very useful PHP functions
In this post I would like to present a few PHP functions which I created for projects I worked on and which I found very useful many times.
The functions are not super-advanced, but really handy. You can use them freely as they all are licensed under MIT.
I think there is a big chance you will find them useful too. If you do- please leave a comment, thanks!
(Almost) All PHP functions with simple explanations in one place
AMQP
AMQPConnection::__construct – Create an instance of AMQPConnection
AMQPConnection::isConnected – Determine if the AMQPConnection object is still connected to the broker.
AMQPExchange::bind – The bind purpose
AMQPExchange::__construct – Create an instance of AMQPExchange
AMQPExchange::declare – Declare a new exchange on the broker.
AMQPExchange::delete – Delete the exchange from the broker.
AMQPExchange::publish – Publish a message to an exchange.
AMQPQueue::ack – Acknowledge the receipt [...]
URL related simple MySQL functions
Below you can find simple MySQL code snippets to extract various information from URLs stored in a database table.