To update multiple records in a MongoDB collection by their IDs and set a single field to the same value using PHP, you can utilize the `updateMany` method […]
Pagination with MongoDB in PHP
To implement pagination using MongoDB in PHP with the `MongoDB\Collection::find()` method, you can utilize the `limit()` and `skip()` functions. This allows you to control how many documents are […]
Finding MongoDB Documents and Converting to Array in PHP
In this tutorial, we will explore how to find documents in a MongoDB collection using PHP and convert those results into an array format. Whether you want to […]
A Beginner’s Guide to Using SoapClient with Pure PHP
In this tutorial, we will explore how to use the `SoapClient` class in pure PHP to interact with SOAP web services. SOAP (Simple Object Access Protocol) is a […]
PHP spaceship operator (<=>) – is it useful?
Since PHP 7, we have brand new (or brand old) operator, called spaceship – how can it be used?
Quick tip: How to deal with “Entity passed to the choice field must be managed.” with Doctrine?
Sometimes it is good to store form data in session – for example when working with filters, when you want to save last filters state when user gets […]
How to install pcntl PHP extension in Mamp Pro on MacOS Catalina?
Ever wanted to install pnctl extension for Mamp PRO on Catalina in 16 easy steps? If yes, read below.
How to find Woocommerce products out of stock with stock greater then zero?
Sometimes, especially if you are using custom plugins to import stock data, you may find products with some stock value (greater then 0) but with stock flag set […]
How to make Woocommerce pages work with Polylang?
This can be really frustrating, you wanted your woocommerce shop running multilingual, but from cart page “Checkout” button leads to default language version? Solution is very simple, but […]