
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
imagesx() function in PHP
The imagesx() function gets the width of image. It returns the width of the image or FALSE on errors.
Syntax
imagesx(img)
Parameters
img: Image resource created with imagecreatetruecolor()
Return
The imagesx() function returns the width of the image or FALSE on errors.
Example
The following is an example:
<?php $img = imagecreatetruecolor(450, 250); echo imagesx($img); ?>
Output
The following is the output:
450
Advertisements