Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

Empfohlene Antworten

Veröffentlicht

hi,

ich habe folgendes Problem:

ich habe eine Stringvariable, in welcher der Standarttext steht, der zimmlich lang ist.

Nun will ich wissen, ob ich in disem String sowas wie Platzhalter einbauen kann.

Es ist so, die Variable wird viele, viele male eingebunden, später im Script. Wenn ich nun da die Variable angebe, die noch gar nicht existiert und diese dann vor dem Einbinden auf ihrgendein Wert setze, wird das nicht erkannt, weil der Text schon vorher zugewiesen war.

Also, kann ich in den Strings Platzhalter einbauen?

HuHu schau mal: :)

Mit leak() kann man die angegebene Speichergröße (bytes) in Byte belegen.

Bsp:

<?PHP

leak(2000000);

?>

Meinst du sowas ? :confused:

$var = "Das ist ziemlich langer Text. PLATZHALTER1 und ich weiss nicht was ich PLATZHALTER2 so alles da schreiben soll ..."

Und dann brauchst du die nur ersetzen, je nach Bedarf.

MfG

HaHa axo ich denk immer viel zu kompli :bimei :marine

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.