php.org PHP Logo
Beginner Intermediate Advanced

Search results for: "width attribute"

What are some methods to determine the width of a string in PHP?

When working with strings in PHP, it can be useful to determine the width of a string in order to properly format text or layout elements on a webpage...

How can PHP scripts be modified to check the width of an image before creating a thumbnail, as suggested in the forum thread?

To modify PHP scripts to check the width of an image before creating a thumbnail, you can use the `getimagesize()` function in PHP to retrieve the wid...

How can the font width be adjusted in FPDF when generating PDFs?

To adjust the font width in FPDF when generating PDFs, you can use the SetStretching() method provided by the FPDF library. This method allows you to...

How can PHP beginners effectively handle font size and style when calculating string width?

When calculating string width in PHP, beginners can effectively handle font size and style by using the `imagettfbbox()` function to get the bounding...

What function in PHP can be used to determine the height and width of an image?

To determine the height and width of an image in PHP, you can use the `getimagesize()` function. This function returns an array containing the dimensi...

Showing 46 to 50 of 3950 results

‹ 1 2 ... 7 8 9 10 11 12 13 ... 789 790 ›
PHP.ORG

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

Legal

  • About
  • Contact / Imprint
  • Terms
  • FAQ

© 2025 php.org. All rights reserved.