Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem with Variable in PHP

Featured Replies

I have about 40 varibles declared in file var.php:

<?
$a[0][0]=1;
$a[0][1]=2;
.......
.......
$t[1][1]=26;
?>

and below is the code from file index.php that has problem:

<?
require 'var.php';
?>

......some code.....

<?
echo 'a = ' . $a[0][0];
?>

......some code....

<?
echo 'a = ' . $a[0][0];
?>

The problem is: I did not change any value of the variables, but some variables $a[0][0] at the bottom of index.php displayed nothing on the page :wacko: . Can you help me with that?


  • Author

This is the weirdest thing:

<?
$a[0][0]=1;
?>
.................
.................
<?
echo "a = " . $a[0][0];
?>
................
................
<?
echo "a = " . $a[0][0];
?>

the result is:

a = 1
a =

I got nothing for $a[0][0] at the bottom of the page :wacko: .

  • Author

I fixed the problem by changing $a to $aa.

Thanks eXPerience-XP for your help :thumbup .

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.