mb_split returning strange charadters for RTL

I’m trying to split Arabic words into array but it always return some strange characters. Here’s the code: <?php mb_internal_encoding("UTF-8"); function fatehah(){ $surah = " بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ ١ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَـٰلَمِينَ ٢ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ ٣مَـٰلِكِ يَوْمِ ٱلدِّينِ ٤إِيَّاكَ نَعْبُدُ وَإِيَّاكَ نَسْتَعِينُ ٥ٱهْدِنَا ٱلصِّرَٰطَ ٱلْمُسْتَقِيمَ ٦صِرَٰطَ ٱلَّذِينَ أَنْعَمْتَ عَلَيْهِمْ غَيْرِ ٱلْمَغْضُوبِ عَلَيْهِمْ وَلَا ٱلضَّآلِّينَ ٧… Read More mb_split returning strange charadters for RTL

Including font awesome class in php table row based on a condition

I am working on this below php page and I am trying to include font awesome class when there is a certain condition met. But, getting the below error. Parse error: syntax error, unexpected ‘if’ (T_IF), expecting ‘;’ or ‘,’ here is the code foreach($result as $row) { echo ‘<tr> <td>’ if(.$row["FLAG"]=="1") { ‘<i class="fa-sharp… Read More Including font awesome class in php table row based on a condition

split the array into objects and add a description

I have an array mind [{"id":"331","file_name":"3b1379e2496408dd4c865f5f63f96bf6","file_path":"https://path/3b1379e2496408dd4c865f5f63f96bf6.png&quot;}, {"id":"332","file_name":"d0ef559473a061086592bceed0880a01","file_path":"https://path/d0ef559473a061086592bceed0880a01.png&quot;}] I need to output this array so that in the end it looks like this [{url:"https://path/3b1379e2496408dd4c865f5f63f96bf6.png&quot;}, {url:"https://path/d0ef559473a061086592bceed0880a01.png&quot;}] To output only one field from an array, I use array_column($array, ‘file_path’) And I end up with ["https://path/3b1379e2496408dd4c865f5f63f96bf6.png&quot;, "https://path/d0ef559473a061086592bceed0880a01.png"%5D But how now to make these fields be objects and add a… Read More split the array into objects and add a description