Skip to content Skip to footer
Phil's Blog Logo Phil's Blog Logo
Menu
  • Blog Home

Day: 21 December 2024

PHP

How to get country codes using the ODOO xmlrpc API and PHP.

December 21, 2024 / December 21, 2024 by Philip Newman | Leave a Comment

To fetch country codes from an Odoo instance using PHP 8.2, you’ll need to use the Odoo XML-RPC API. Below is an example of how to achieve this: Step 1: Set Up PHP Environment Ensure you have PHP 8.2 installed with the necessary extensions, including the cURL extension, which is used for making HTTP requests. […]

Read more »

PHP PHP 8.2

PHP

Using PHP to turn an HTML table into an Array()

December 21, 2024 / December 21, 2024 by Philip Newman | Leave a Comment

To convert an HTML table into a PHP array in PHP 8.2, you can use the DOMDocument class, which provides a structured way to parse and extract data from HTML. Here’s an example of how to achieve this: Example Code: Output: Explanation: This approach is flexible and can handle more complex HTML tables with nested […]

Read more »

PHP 8.2
Sidebar

Recent Posts

  • Deploy a WordPress Site Fast with bootScore and AI-Built Child Themes
  • How to add .webp image support into WordPress.
  • List of commonly used PHP Extensions
  • How to connect to SFTP using PHP8.3.
  • Verify a reCAPTCHA using PHP 8.3

Categories

  • Dovecot
  • Dribble
  • JavaScript
  • Linux
  • PHP
  • Postfix
  • WooCommerce
  • Wordpress
© 2026 Phil's Blog