Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

image_hwstring()

3 tags 1 category

image_hwstring() — Retrieves width and height attributes using given width and height values. Both attributes are required in the sense that both parameters must have a value, but are optional in that if you set them to false or null, then they will not be added to the returned string. You can set the value using a string, but it will only take numeric values. If you wish to put ‘px’ after the numbers, then it will be stripped out of the return.

Inputs: $width (int|string): Image width in pixels. $height (int|string): Image height in pixels.

Returns string: HTML attributes for width and, or height.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…