![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
gmp_or() function in PHP
The gmp_or() function computes the bitwise OR of two GMP numbers.
Syntax
gmp_or(n1, n2)
Parameters
n1: The first GMP number. It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.
n2: The second GMP number. It can be GMP object in PHP version 5.6 and later. Can also be numeric strings.
Return
The gmp_or() function returns the OR of the GMP numbers. The result is also a GMP number.
Example
The following is an example:
<?php $res = gmp_or("5", "7"); echo $res; ?>
Output
The following is the output:
7
Advertisements