verseNo::ayah( surah [, ayah] )

Gets the verse number by surah & ayah number


verseNo::ayah( surah [, ayah] )

Surah number need to be added here

Ayah number need to be added here. default value is 1


Examples:

Example: verse number for surah & ayah number

quran::init(); // initial start run - required

echo('Ayah: 1:1 verse number is '.verseNo::ayah(1, 1));
echo('Ayah: 2:1 verse number is '.verseNo::ayah(2, 1));
echo('Ayah: 2:2 verse number is '.verseNo::ayah(2, 2));
 // last verse of Quran
echo('Ayah: 114:6 verse number is '.verseNo::ayah(114, 6))

Demo:

Comments


blog comments powered by Disqus

.