← All docs

imagesx()

Returns an image's width in pixels.

imagesx()

function imagesx(mixed $image): int

Returns an image’s width in pixels.

Parameters:

  • $image (mixed)

Returns: int

Availability

Compiled (AOT)Magician (eval)
AvailableNot available yet

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how imagesx is implemented in the compiler, see the internals page.