PHP Classes

File: demo.php

Recommend this page to a friend!
  Classes of peyman   PHP AWR class   demo.php   Download  
File: demo.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP AWR class
Process text to apply rules to display arabic text
Author: By
Last change: Update demo.php

added a style for showing rules colors
added a simple verse
Date: 5 years ago
Size: 963 bytes
 

Contents

Class file image Download
<meta charset="utf-8" />

<style>
   //style sample
.chunna {
    color: #FF6600;
}
.ikhfaa {
    color: #CC0000;
}
.qalqala {
    color: #00CC00;
}
.lqlab {
    color: #6699FF;
}
.idghamwg {
    color: #BBBBBB;
}
.idgham {
    color: #9900CC;
}
.maddah {
    color: #34495e;
}
</style>

<?php
error_reporting
(E_ALL);

require_once(
'awr_process.php');

   
$verse = "??????????? ??????????? ???? ????????";
   
$verse2 = new awr_process($verse);
   
$verse2->register_filter("filter_qalqala");
   
$verse2->register_filter("filter_ghunna");
   
$verse2->register_filter("filter_lqlab");
   
$verse2->register_filter("filter_ikhfaa");
   
$verse2->register_filter("filter_idgham");
   
$verse2->register_filter("filter_idgham_without_ghunna");
   
$verse2->register_filter("filter_maddah");
   
$verse2->process();
   
$verse2->reorder();
   
$verse2->render();

?>