ayah::fromVerse( verse )

Gets the surah & ayah number from a given verse number


ayah::fromVerse( verse )

Verse number need to be added here

Returns: object - example: {surah: 1, ayah: 2}


Examples:

Example: Surah & Ayah number from a verse number

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

echo('Verse 8 belongs to surah & ayah number '.ayah::fromVerse(8)->surah.':'.ayah::fromVerse(8)->ayah);


Demo:

Comments


blog comments powered by Disqus

.