<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: HamplusTech</title>
    <description>The latest articles on DEV Community by HamplusTech (@hamplustech).</description>
    <link>https://dev.to/hamplustech</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F492464%2F459413b1-9d19-4c40-993a-2d4752385092.jpeg</url>
      <title>DEV Community: HamplusTech</title>
      <link>https://dev.to/hamplustech</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hamplustech"/>
    <language>en</language>
    <item>
      <title>Improved Solution to Flatten A Complex PHP Nested Array</title>
      <dc:creator>HamplusTech</dc:creator>
      <pubDate>Tue, 09 Sep 2025 17:54:30 +0000</pubDate>
      <link>https://dev.to/hamplustech/improved-solution-to-flatten-a-complex-php-nested-array-1627</link>
      <guid>https://dev.to/hamplustech/improved-solution-to-flatten-a-complex-php-nested-array-1627</guid>
      <description>&lt;p&gt;Learn how to flatten a nested array in PHP with a simple and practical example. 🚀 In this video, you will discovered how to handle complex arrays and convert them into a single-level array. Perfect for beginners and anyone looking to sharpen their PHP skills.&lt;/p&gt;

&lt;p&gt;This is an improved solution from &lt;a href="https://dev.to/lavary/how-to-flatten-an-array-in-php-four-methods-dnd#:%7E:text=In%20the%20above%20code%2C%20we,current%20element%20as%20its%20argument"&gt;https://dev.to/lavary/how-to-flatten-an-array-in-php-four-methods-dnd#:~:text=In%20the%20above%20code%2C%20we,current%20element%20as%20its%20argument&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$data = [2, "Abigael", "Paul", 45.3, ["Paulina", "Trust", 23, 45], True, ["Address" =&amp;gt; "12 New layout", "Balance" =&amp;gt; 56000]];

function array_flatten($array) {
    $output = [];
    for ($t = 0; $t &amp;lt; count($array); $t++) {
        if(!is_array($array[$t])) {
            array_push($output, $array[$t]);
        } elseif(is_array($array[$t])) {
            foreach ($array[$t] as $key =&amp;gt; $value) {
                if (!is_numeric($key) &amp;amp; $key != 0) {
                    array_push($output, $value);
                } else {
                    array_push($output, $value);
                }
            }
        }
    }
    return($output);
}

echo "&amp;lt;p style='font-weight:bold;'&amp;gt;Final Method Our Method (Myself and my students - Christabel and Great)&amp;lt;/p&amp;gt;";
$quick = array_flatten($data);
echo "Flatten array - " ;
print_r($quick);
echo "&amp;lt;p&amp;gt;Count - ".count($quick) ."&amp;lt;/p&amp;gt;";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;GitHub Repository&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/HamplusTech/flatten-PHP-complex-nested-array-/tree/main" rel="noopener noreferrer"&gt;https://github.com/HamplusTech/flatten-PHP-complex-nested-array-/tree/main&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;YouTube Video&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://youtu.be/YAdh8g-JHK4" rel="noopener noreferrer"&gt;https://youtu.be/YAdh8g-JHK4&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  PHP #Array #Coding #WebDevelopment #PHPTutorial #LearnPHP #FlattenArray #Programming #CodeNewbie #SoftwareDevelopment
&lt;/h1&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>developer</category>
      <category>php</category>
    </item>
    <item>
      <title>Positioning for Post COVID-19 Remotely</title>
      <dc:creator>HamplusTech</dc:creator>
      <pubDate>Sun, 18 Oct 2020 00:47:20 +0000</pubDate>
      <link>https://dev.to/hamplustech/positioning-for-post-covid-19-remotely-fc1</link>
      <guid>https://dev.to/hamplustech/positioning-for-post-covid-19-remotely-fc1</guid>
      <description>&lt;p&gt;Outline&lt;br&gt;
• What does ‘Remote’ or ‘Remotely’ mean in ICT?&lt;br&gt;
• Remote Positioning&lt;br&gt;
• Remote Tools&lt;br&gt;
• COVID-19&lt;br&gt;
• The Timeline – Pre COVID-19, COVID-19, Post COVID-19&lt;br&gt;
• Positioning for Post COVID-19 remotely&lt;br&gt;
• How to position for Post COVID-19 remotely&lt;br&gt;
Remote or remote access is the ability to a physical digital entity such a computer, network and so on, from a different location. That is, the ability to work offsite. Remote access is enabled through a network such as a LAN – Local Area Network, WAN – Wide Area Network, Internet, VPN – Virtual Private Network and so on.&lt;br&gt;
Remote access has given ability for service to be done remotely. Remote working is working away from the employer’s place of business. Remote working and access have some benefits like increase productivity, cost reduction, satisfactory working environment and greener business.&lt;br&gt;
Despite the benefits, there are some challenges to remote access with the major being network and power issues. The network issues have to do with the speed and stability of accessing the data. Power issue dwells on the inconsistency and epileptic electricity supplied to the citizens especially in Nigeria and Africa.&lt;br&gt;
Remote positioning is one leaving the onsite to the offsite, doing the same job as when onsite. When an employer empowers the employees using remote tools for remote working, then the employer has done remote positioning.&lt;br&gt;
Remote tools vary but the most paramount is the network then the software or application proceeds. Some of these are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; GoTo Assist&lt;/li&gt;
&lt;li&gt; Windows Desktop Sharing&lt;/li&gt;
&lt;li&gt; TeamViewer&lt;/li&gt;
&lt;li&gt; Apple Remote Desktop&lt;/li&gt;
&lt;li&gt; Zoom&lt;/li&gt;
&lt;li&gt; Google Meet (formerly Google Hangout)&lt;/li&gt;
&lt;li&gt; IdeaBoardz&lt;/li&gt;
&lt;li&gt; ConnectWise (formerly ScreenConnect)&lt;/li&gt;
&lt;li&gt; DameWare&lt;/li&gt;
&lt;li&gt;Bomgar&lt;/li&gt;
&lt;li&gt;GitLab&lt;/li&gt;
&lt;li&gt;GitHub&lt;/li&gt;
&lt;li&gt;Fiverr
COVID-19 caused some businesses a great cost, however, some made a big fat from the pandemic. These were businesses that are digital in nature and remotely focused in their work. Others are those that owns the platform (application and software) for remote access such as zoom. Many companies and businesses had to shift from onsite to offsite; working from home and dependent on tools than ever before, so that there will be continuity of business and services rendered to their customers.
The only entity that was not shutdown during the heavy wave of the COVID-19 pandemic was technology. You can attest the fact that even government was shutdown in some countries.
The predictions on remote positioning for post COVID-19 are that:&lt;/li&gt;
&lt;li&gt; Remote working has come to stay&lt;/li&gt;
&lt;li&gt; Technology will continually play significant role in lives, businesses and governments.
Table 1 The Timeline
Pre COVID-19    COVID-19    Post COVID-19
Onsite businesses
Good/fair economy
Workforce okay  Business shutdown
Economy worst
Workforce shutdown  Offsite businesses
Economy reviving
Offsite workforce&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Figure 1    Daily Cases Confirmed in Nigeria&lt;/p&gt;

&lt;p&gt;Figure 2    Cumulative Cases in Nigeria&lt;br&gt;
Table 2 COVID-19 Statistics (Global and Nigeria)&lt;br&gt;
Nigeria cases&lt;br&gt;
Updated Sep 29 at 10:43 PM local&lt;br&gt;
Confirmed&lt;br&gt;
58,460&lt;br&gt;
+136    Deaths&lt;br&gt;
1,111&lt;br&gt;
+3  Recovered&lt;br&gt;
49,895&lt;br&gt;
+101&lt;br&gt;
Global cases&lt;br&gt;
Updated Sep 29 at 10:43 PM local&lt;br&gt;
Confirmed&lt;br&gt;
33,484,120&lt;br&gt;
+327,308    Deaths&lt;br&gt;
1,004,082&lt;br&gt;
+5,386  Recovered&lt;br&gt;
23,212,633&lt;br&gt;
+251,197&lt;/p&gt;

&lt;p&gt;Figure 3    COVID-19 Infection Rate in Africa&lt;br&gt;
Data from: CDC, WHO, ECDC, Wikipedia, The New York Times&lt;br&gt;
Positioning for Post COVID-19 remotely is a call to all and sundry whether a business owner or not; to shift from onsite business activity to offsite business activities. This is so due to the precautionary measures of COVID-19 and the trend to which the business ecosystem is following in this period of post COVID-19. Businesses that were not positioned remotely in pre COVID-19, suffered during the COVID-19, and the same story awaits businesses that will not position for post COVID-19 remotely.&lt;br&gt;
Below are some keys to be positioned for post COVID-19 remotely:&lt;br&gt;
• Have an internet presence using Google Business&lt;br&gt;
• Open page for your business using Facebook and LinkedIn.&lt;br&gt;
• Open social media account for your business using Twitter and Instagram&lt;br&gt;
• Have a business account with Fiverr&lt;br&gt;
• If you are a developer, make use of online repositories like GitLab, GitHub, GitBucket and so on.&lt;br&gt;
• There is no harm in your business having a blogsite even if there is a website for the business.&lt;br&gt;
• Have a business website.&lt;br&gt;
• Make use of VoIP applications like Zoom, Skype, Telegram and Whatsapp.&lt;br&gt;
• As a researcher, make use of Academia, LinkedIn, ResearchGates and others.&lt;/p&gt;

&lt;p&gt;Reference:&lt;br&gt;
&lt;a href="https://www.techopedia.com/definition/5553/remote-access#:%7E:text=Remote%20access%20refers%20to%20the,such%20as%20the%20office%20network"&gt;https://www.techopedia.com/definition/5553/remote-access#:~:text=Remote%20access%20refers%20to%20the,such%20as%20the%20office%20network&lt;/a&gt;.&lt;br&gt;
&lt;a href="https://www.safeguardict.com/remote-working/"&gt;https://www.safeguardict.com/remote-working/&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.techopedia.com/definition/23696/remote-computer"&gt;https://www.techopedia.com/definition/23696/remote-computer&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.trustradius.com/buyer-blog/remote-desktop-tools-for-efficient-tech-support"&gt;https://www.trustradius.com/buyer-blog/remote-desktop-tools-for-efficient-tech-support&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.ekoapp.com/blog/the-future-of-remote-work-after-covid-19-3-common-predictions"&gt;https://www.ekoapp.com/blog/the-future-of-remote-work-after-covid-19-3-common-predictions&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.bing.com/search?q=covid+19+chart&amp;amp;qs=n&amp;amp;form=QBRE&amp;amp;sp=-1&amp;amp;pq=&amp;amp;sc=0-0&amp;amp;sk=&amp;amp;cvid=0327AB994BD944CEAE5972C85A684AE7"&gt;https://www.bing.com/search?q=covid+19+chart&amp;amp;qs=n&amp;amp;form=QBRE&amp;amp;sp=-1&amp;amp;pq=&amp;amp;sc=0-0&amp;amp;sk=&amp;amp;cvid=0327AB994BD944CEAE5972C85A684AE7&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Websites were accessed 29th September, 2020&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;About the Author&lt;br&gt;
Hampo, JohnPaul A.C. is a techy who with the help of God founded Hamplus Technologies (aka Hamplus Hub). He is a full stack developer, a data scientist and a researcher. He majors in Python, Php, Vb.net, C#, ASP.net, HTML5, CSS3 and JavaScript. He can be reached via 07063047037, 08050736053; &lt;a href="mailto:hampojohnpaul@gmail.com"&gt;hampojohnpaul@gmail.com&lt;/a&gt;; &lt;a href="http://www.hamplustech.com"&gt;www.hamplustech.com&lt;/a&gt;; also on social media like Facebook, Twitter, Instagram, LinkedIn and Academia. He has 99.5% internet presence. Google his name and find out!&lt;/p&gt;

</description>
      <category>computerscience</category>
      <category>covid19</category>
      <category>remoteworking</category>
    </item>
  </channel>
</rss>
