php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "three-digit number"

How can I efficiently check for both numbers containing the digit three and multiples of three in a PHP loop?

To efficiently check for both numbers containing the digit three and multiples of three in a PHP loop, you can use the modulus operator (%) to check f...

How can a regular expression be used to extract flight numbers starting with LH followed by a three- or four-digit number in PHP?

To extract flight numbers starting with LH followed by a three- or four-digit number in PHP, we can use a regular expression. We can use the preg_matc...

How can I highlight numbers containing the digit three in a PHP while loop?

To highlight numbers containing the digit three in a PHP while loop, you can use the strpos() function to check if the digit '3' is present in each nu...

What are common patterns for recognizing specific values within a string in PHP, such as "A-(6 digit number)" or "(8 digit number)-(7 digit number)"?

When trying to recognize specific patterns within a string in PHP, regular expressions are commonly used. Regular expressions allow you to define a pa...

How can you extract the last digit of a number in PHP?

To extract the last digit of a number in PHP, you can use the modulus operator (%) to get the remainder when dividing the number by 10. This remainder...

Showing 1 to 5 of 10000 results

‹ 1 2 3 4 5 6 7 8 9 10 ... 1999 2000 ›
PHP.ORG

A free knowledge base for PHP developers. Open to all.

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.