I made one language file and I included in my html code. Like for writing Student Name, I DEFINE in my language file as STN_NAM, and I am writing in html code as
<?php echo STN_NAM; ?>
codes in my language file is
<?php
$nm = array(
'PET_NAM' => "Student Pet Name",
'STN_NAM' => "Student Full Name",
'STN_FAT' => "Father Name",
);
foreach($nm as $key => $val)
define($key, $val);
?>
Always I have to write this common code as <?php echo xxxx; ?>. Is there any way to just by writing {STN_NAM} it should print full student name.
The result will look like this
<td>{STN_NAM}</td>
This will help me and many other alot if I can get this....
{xxxxx}and replaces it with the value in question. Ask yourself very carefully whether it's worth the extra complexity.