surah::name( surah [, nameType] )

Gets the name of the surah

surah::name( surah [, nameType] )

Surah number need to be added here

nameType There are 3 types of names arabic_name, english_name or english_meaning. default value is arabic_name


Example: Get surah names and there meaning

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

echo('Surah 1 name is '.surah::name(1, 'arabic_name').' '.surah::name(1, 'english_name').' - '.surah::name(1, 'english_meaning'));
echo('Surah 2 name is '.surah::name(2, 'arabic_name').' '.surah::name(2, 'english_name').' - '.surah::name(2, 'english_meaning'));
echo('Surah 114 name is '.surah::name(114, 'arabic_name').' '.surah::name(114, 'english_name').' - '.surah::name(114, 'english_meaning'));



blog comments powered by Disqus