Jump to content
php.lv forumi
  • 0

Nedefinēts mainīgais, kas nemaz nav mainīgais


EdgarsK

Question

sveiki, situācija pavisam amizanta skatīt attēlu

post-3881-0-83442600-1295520546_thumb.png

 

 

mēģināju arī šo 1 ievietot mainīgajā un padot kā mainīgo, nepalīdz.

 

iedomājos varbūt vainīga saskaitīšana iekš masīva iekavām, bet ar to tak nekad nav bijušas problēmas, ieliku tur jau gatavu rezultātu, bet arī nekas nemainijās, joprojām piesienas par to, ka 1 nav definēts.

 

 

Edited by EdgarsA
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Aciimredzot result ir null, aka s.match(dm) atgriezh null , aka string s neatbilst patternam dm, jo match tad atgriezh null...

 

Un vinjsh nepiesienas, ka 1 nav defineets - vinjsh saka ka nevar nolasiit propertiju '1' no null objekta.

Edited by rATRIJS
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...