Built something? We create video reels & spotlights for GitHub projects.Promote your project →
Catalog / eidryanDM / simple-arrays-in-php
Public GitHub Catalog Discovered Sep 25, 2026

eidryanDM / simple-arrays-in-php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php $coffee = array("starbucks", "figaro", "seattles best"); $coffee_places = array ("a" => "starbucks", "b" => "figaro"); $preferred = $coffee[1]; echo $preferred; $prefer = $coffee_places ["b"]; echo $prefer; $preferred[3] = "coffee bean"; foreach ($coffee as $philcoffee) { echo '<p>' . $philcoffee . '</p>'; } sort ($coffee_places); print_r($coffee_places); echo count ($coffee_places); $coffee[1] = "beanhoppers"; print_r($coffee); ?> </table> </body> </html>

View repository on GitHub ↗ View creator profile Browse directory

About this discovery

This repository is cataloged as part of our automated global GitHub synchronization. Full telemetry, velocity snapshots, and code summaries are scheduled for continuous enrichment.

#4527646GitHub System ID
eidryanDMOrganization / User
PublicVisibility
ActiveCatalog Status

More from eidryanDM

↗

eidryanDM/ECMI-App

A simple web application, based on the Ethical Choices Mapping Instrument.

Discovered
↗

eidryanDM/multiplication-table-in-PHP

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php echo "<h1>Multiplication table</h1>"; echo "<table border=2 width=50%"; for ($i = 1; $i <= 12; $i++ ) { echo "<tr>"; echo "<td>".$i."</td>"; for ( $j = 2; $j <= 12; $j++ ) { echo "<td>".$i * $j."</td>"; } echo "</tr>"; } echo "</table>"; ?> </table> </body> </html>

Discovered
↗

eidryanDM/simple-Odd-Even-in-PHP

<table border="1"> <tr> <th>Number</th> <th>Odd or Even?</th> <th>Prime</th> </tr> <?php for ($i = 1; $i <= 10; $i++) { $oddEven = ( $i % 2 == 0 ) ? "Even" : "Odd"; switch ( $i ) { case 2: case 3: case 5: case 7: $prime = "Yes"; break; default: $prime = "No"; break; } ?> <tr> <td><?php echo $i?></td> <td><?php echo $oddEven?></td> <td><?php echo $prime?></td> </tr> <?php } ?> </table> </body> </html>

Discovered
↗

eidryanDM/computation-loops

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php //variable declaration $iteration = 10; $a = 0; $b = 1; for ($i=0 ; $i <= $iteration; $i++) { $sum = $a + $b; $a = $b; $b = $sum; ?> <tr<?php if ($i % 2 != 0 ) echo 'class="alt"' ?>> <td>F<sub><?php echo $i?></sub></td> <td><?php echo $b?></td> </tr> <?php } ?> </table> </body> </html>

Discovered
FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.